package com.nf.health.app.http;

import android.text.TextUtils;
import android.util.Log;

import com.android.volley.Request;
import com.android.volley.Request.Method;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParseException;
import com.google.gson.reflect.TypeToken;
import com.nf.health.app.Constants;
import com.nf.health.app.MyApplication;
import com.nf.health.app.activity.doctor_advice.bean.AdviceDetail;
import com.nf.health.app.activity.home.bean.CharacteristicBean;
import com.nf.health.app.activity.home.bean.DortorCultrueModel;
import com.nf.health.app.activity.home.bean.Hospitalbean;
import com.nf.health.app.activity.home.bean.InformationNotice;
import com.nf.health.app.activity.home.bean.MyBinnerHomeModel;
import com.nf.health.app.activity.home.bean.MyHomeHospitalConsultationModel;
import com.nf.health.app.activity.home.bean.SatisfactionSurveyQuestionBean;
import com.nf.health.app.activity.hostopal.model.MyHopstipalListBaen;
import com.nf.health.app.activity.my.bean.CreateOrderBean;
import com.nf.health.app.activity.my.bean.HealthyOldManManagerProject;
import com.nf.health.app.activity.my.bean.QuestionResultModel;
import com.nf.health.app.activity.my.bean.RegisterBean;
import com.nf.health.app.bodyfat.bean.BodyFatHistoryBean;
import com.nf.health.app.chatservice.bean.StatusBean;
import com.nf.health.app.core.HttpActionHandle;
import com.nf.health.app.core.MyGsonBuilder;
import com.nf.health.app.healthbank.bean.HealthBankDetailBean;
import com.nf.health.app.healthbank.bean.HealthBankVo;
import com.nf.health.app.http.HttpRequestProvider.DataParse;
import com.nf.health.app.inquiry.bean.DoctorDetailBean;
import com.nf.health.app.inquiry.bean.FastVo;
import com.nf.health.app.inquiry.bean.InquiryBean;
import com.nf.health.app.inquiry.bean.InquiryDetailBean;
import com.nf.health.app.intervention_details.bean.DetectionVo;
import com.nf.health.app.intervention_details.bean.InterventionBean;
import com.nf.health.app.intervention_details.bean.InterventionCoverBean;
import com.nf.health.app.intervention_details.bean.MeridianVo;
import com.nf.health.app.intervention_details.bean.MusicVo;
import com.nf.health.app.intervention_details.bean.PrescriptionVo;
import com.nf.health.app.intervention_details.bean.SportSchemeVo;
import com.nf.health.app.main_intervention.bean.MedicinedDietBean;
import com.nf.health.app.main_intervention.bean.MeridianBean;
import com.nf.health.app.main_intervention.bean.MySportBean;
import com.nf.health.app.main_intervention.bean.PlayMusic;
import com.nf.health.app.models.AJAXLogin;
import com.nf.health.app.models.Account;
import com.nf.health.app.models.AdviceBanner;
import com.nf.health.app.models.AppraisalQuestion;
import com.nf.health.app.models.BannerBean;
import com.nf.health.app.models.BannerList;
import com.nf.health.app.models.BillVo;
import com.nf.health.app.models.BloodPressureHistoryBean;
import com.nf.health.app.models.BloodSugarDataBean;
import com.nf.health.app.models.BloodoHistoryOygenBean;
import com.nf.health.app.models.CheckItem;
import com.nf.health.app.models.CheckMessage;
import com.nf.health.app.models.CollectList;
import com.nf.health.app.models.CommentVo;
import com.nf.health.app.models.ConsulList;
import com.nf.health.app.models.ConsulReplyList;
import com.nf.health.app.models.ConsultDetail;
import com.nf.health.app.models.ConsultHistory;
import com.nf.health.app.models.DADetails;
import com.nf.health.app.models.DataBanner;
import com.nf.health.app.models.DataDetailExtra;
import com.nf.health.app.models.DateListBean;
import com.nf.health.app.models.DateVo;
import com.nf.health.app.models.DetectionHistory;
import com.nf.health.app.models.DetectionProject;
import com.nf.health.app.models.DetectionResultExtra;
import com.nf.health.app.models.DeviceData;
import com.nf.health.app.models.DeviceItem;
import com.nf.health.app.models.DiseaseTrend;
import com.nf.health.app.models.DoctorAdviceItem;
import com.nf.health.app.models.DoctorCommnetVo;
import com.nf.health.app.models.DoctorHome;
import com.nf.health.app.models.DoctorVo;
import com.nf.health.app.models.EcgHistory;
import com.nf.health.app.models.Evaluation;
import com.nf.health.app.models.EvaluationQuestion;
import com.nf.health.app.models.EvaluationResult;
import com.nf.health.app.models.Family;
import com.nf.health.app.models.HealthManagerStatus;
import com.nf.health.app.models.HealthMoneyHistoryBean;
import com.nf.health.app.models.HealthNewsBean;
import com.nf.health.app.models.HealthSchemeVo;
import com.nf.health.app.models.HealthStateBean;
import com.nf.health.app.models.HealthStateInfo;
import com.nf.health.app.models.HealthyIndext;
import com.nf.health.app.models.HealthyInfo;
import com.nf.health.app.models.HistoryVo;
import com.nf.health.app.models.HomeRecommendInfo;
import com.nf.health.app.models.HousePersionCompeteModel;
import com.nf.health.app.models.HouseResponblePresion;
import com.nf.health.app.models.IntegrationVo;
import com.nf.health.app.models.LoginRemind;
import com.nf.health.app.models.MengHistoryModel;
import com.nf.health.app.models.MyDeviceData;
import com.nf.health.app.models.MyDeviceList;
import com.nf.health.app.models.MyDoctor;
import com.nf.health.app.models.MyDoctorMeassageDetails;
import com.nf.health.app.models.MyMessage;
import com.nf.health.app.models.MyPlanRecommend;
import com.nf.health.app.models.OrderLogin;
import com.nf.health.app.models.Person;
import com.nf.health.app.models.PersonalDocModel;
import com.nf.health.app.models.PersonalInfor;
import com.nf.health.app.models.Praise;
import com.nf.health.app.models.Project;
import com.nf.health.app.models.RecommendList;
import com.nf.health.app.models.RecommendSport;
import com.nf.health.app.models.RedpacketBean;
import com.nf.health.app.models.RegimenContentExtra;
import com.nf.health.app.models.RemindDetail;
import com.nf.health.app.models.RemindList;
import com.nf.health.app.models.Result;
import com.nf.health.app.models.ScannerHistoryBean;
import com.nf.health.app.models.SchemeAddVo;
import com.nf.health.app.models.SchemeBean;
import com.nf.health.app.models.SchemeCaterogy;
import com.nf.health.app.models.SchemeCaterogyList;
import com.nf.health.app.models.SchemeDetails;
import com.nf.health.app.models.SchemeHistoryBean;
import com.nf.health.app.models.SchemeVo;
import com.nf.health.app.models.Score;
import com.nf.health.app.models.SearchMainDocBean;
import com.nf.health.app.models.Security;
import com.nf.health.app.models.SolutionSchemeBean;
import com.nf.health.app.models.SportInfo;
import com.nf.health.app.models.SystemHealthVo;
import com.nf.health.app.models.SystemMsgDetail;
import com.nf.health.app.models.SystemSchemeVo;
import com.nf.health.app.models.TestPlan;
import com.nf.health.app.models.TopicItem;
import com.nf.health.app.models.TwQuestion;
import com.nf.health.app.models.UpdateVo;
import com.nf.health.app.models.UrineTestHistoryBean;
import com.nf.health.app.models.UserInDevice;
import com.nf.health.app.models.UserInfo;
import com.nf.health.app.sport_recipe.bean.SportRecipeDetailBean;
import com.nf.health.app.sweat.bean.SweatSettingBean;
import com.nf.health.app.utils.AppUtil;
import com.nf.health.app.utils.JsonUtils;
import com.nf.health.app.utils.LogUtil;
import com.nf.health.app.utils.PreferenceHelper;
import com.nf.health.app.utils.wximpl.bean.OrederSendInfo;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.io.UnsupportedEncodingException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;


public class RequestProvider {
    private HttpActionHandle actionHandle;

    public RequestProvider(HttpActionHandle actionHandle) {
        this.actionHandle = actionHandle;
    }

    /**
     * 抽取 获得每次请求捎带的头
     *
     * @return
     */
    public Map<String, String> getMapHeader() {
        Map<String, String> mapHeader = new HashMap<String, String>();
        mapHeader.put("NF_USER_INFO", MyApplication.getToken());
        if (!TextUtils.isEmpty(MyApplication.getNF_USER_SESSION())) {
            mapHeader.put("NF_USER_SESSION", MyApplication.getNF_USER_SESSION());
        }
        return mapHeader;
    }

    /**
     * 引导注册
     * <p>
     * http://user.nf1000.com/m/registerInfo.action
     */
    public void requestRegisterInfo(String nick_name, String sex,
                                    String birthday, String weight, String height, final String httpFlag) {
        Map<String, String> maps = new HashMap<>();
        try {
            maps.put("nick_name", new String(nick_name.getBytes("utf-8"), "iso-8859-1"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        maps.put("sex", sex);
        maps.put("birthday", birthday);
        maps.put("weight", weight);
        maps.put("height", height);
        //{nick_name=小编, birthday=2015-5-25, sex=1, height=41, weight=15, version=1.3}
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, null,
                Apis.getCommonUrl(Act.REGISTERINFOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        OrderLogin orderLogin = gson.fromJson(dataStr, OrderLogin.class);
                        actionHandle.handleActionSuccess(httpFlag, orderLogin);
                    }
                });
    }

    /**
     * 登陆AJAX
     *
     * @param username
     * @param password
     * @param httpFlag http://test.user.nf1000.com/login.html
     */
    public void requestAJAX(String username, String password,
                            final String httpFlag) {
        Map<String, String> map = new HashMap<>();
        map.put("userid", username);
        map.put("password", password);
        map.put("time", Integer.toString(24 * 7));
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
//        client.request(Method.POST, map, null, Apis.getSSOUrl(Act.AJAX),
        client.request(Method.POST, map, null, Apis.getCommonUrl(Act.AJAX_NEW),
                new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        Log.i("requestAJAX", result);
                        Gson gson = new MyGsonBuilder().createGson();
                        AJAXLogin ajaxLogin = gson.fromJson(data, AJAXLogin.class);
                        actionHandle.handleActionSuccess(httpFlag, ajaxLogin);
                    }
                });
    }

    /**
     * 消息中心
     */
    public void requestLogList(String page, String page_size,
                               final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("page", page);
        maps.put("page_size", page_size);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.LOGLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyMessage myMessage = gson.fromJson(dataStr, MyMessage.class);
                        actionHandle.handleActionSuccess(httpFlag, myMessage);
                    }
                });
    }

    /**
     * 删除消息
     */
    public void requestDeleteMsgById(String log_id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("log_id", log_id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.DELETE_MSG), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 提醒详情
     */
    public void requestGetRemindDetail(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader, Apis.getCommonUrl(Act.GET_REMIND_DETAIL), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                RemindDetail detail = gson.fromJson(dataStr, RemindDetail.class);
                actionHandle.handleActionSuccess(httpFlag, detail);
            }
        });
    }

    /**
     * 系统消息详情
     * <p>
     * http://test.user.nf1000.com/m/registerInfo.action
     */
    public void requestLogInfor(String log_id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("log_id", log_id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.LOGINFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        if ("security".equals(httpFlag)) {
                            Security security = gson.fromJson(dataStr, Security.class);
                            actionHandle.handleActionSuccess(httpFlag, security);
                        } else {
                            LoginRemind security = gson.fromJson(dataStr, LoginRemind.class);
                            actionHandle.handleActionSuccess(httpFlag, security);
                        }
                    }
                });
    }

    /**
     * 用户信息
     *
     * @param httpFlag
     */
    public void requestUserInfo(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.NEWUSERINFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        UserInfo userInfo = gson.fromJson(data, UserInfo.class);
                        PreferenceHelper.putString(PreferenceHelper.USERTYPE, userInfo.getType());
                        PreferenceHelper.putString(PreferenceHelper.USERICON, userInfo.getHimg());
                        PreferenceHelper.putString(PreferenceHelper.USERNICK, userInfo.getNick());
                        PreferenceHelper.putString(PreferenceHelper.USERSEX, userInfo.getSex());
                        actionHandle.handleActionSuccess(httpFlag, userInfo);
                    }
                });
    }

    /**
     * 新用户信息
     *
     * @param httpFlag
     */
    public void requestNewUserInfo(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.NEWUSERINFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("个人信息", result);
                        String data = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        PersonalInfor personalInfor = gson.fromJson(data, PersonalInfor.class);
                /*
                 * PreferenceHelper.putString(PreferenceHelper.USERTYPE,
				 * userInfo.getType());
				 * PreferenceHelper.putString("headerUrl",
				 * userInfo.getHimg());
				 * PreferenceHelper.putString("userName",
				 * userInfo.getNick());
				 */
                        actionHandle.handleActionSuccess(httpFlag,
                                personalInfor);
                    }
                });
    }

    /**
     * 新医生列表
     *
     * @param page
     * @param page_size
     * @param httpFlag
     */
    public void requestMyDoctorList(String page, String page_size,
                                    final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("page", page);
        map.put("page_size", page_size);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.NEWMYDOCTORLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<MyDoctor> myDoctor = gson.fromJson(list,
                                new TypeToken<List<MyDoctor>>() {
                                }.getType());

                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    /**
     * 关注医生
     *
     * @param doctorid
     * @param httpFlag
     */
    public void requestFoucsDoctor(String doctorid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.FOUCS_DOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 取消关注医生
     *
     * @param doctorid
     * @param httpFlag
     */
    public void requestCancleFoucsDoctor(String doctorid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.CANCLEFOUCSDOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 测评描述列表
     *
     * @param evalFlag
     * @param httpFlag
     */
    public void requestCepingDes(String evalFlag, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        if (evalFlag != null) {
            map.put("evalFlag", evalFlag);
        }
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.EVALLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Type type = new TypeToken<List<Evaluation>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<Evaluation> evaluationList = gson.fromJson(list,
                                type);
                        actionHandle.handleActionSuccess(httpFlag,
                                evaluationList);
                    }
                });
    }

    /**
     * 测评描述列表
     *
     * @param uid
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestCepingResult(String uid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.EVALUATIONRESULT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Type type = new TypeToken<List<EvaluationResult>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<EvaluationResult> evaluationList = gson.fromJson(
                                list, type);
                        actionHandle.handleActionSuccess(httpFlag,
                                evaluationList);
                    }
                });

    }

    public void requestEvaluationQueslist(String evalFlag, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("evalFlag", evalFlag);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.QUESLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String data2Str = JsonUtils.getFiledData(dataStr,
                                "data");
                        String list = JsonUtils.getFiledData(data2Str,
                                "question");
                        Type type = new TypeToken<List<EvaluationQuestion>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<EvaluationQuestion> evaluationList = gson
                                .fromJson(list, type);
                        actionHandle.handleActionSuccess(httpFlag,
                                evaluationList);
                    }
                });
    }

    /**
     * 新设备绑定接口
     *
     * @param boxno
     * @param userno
     * @param httpFlag
     */
    public void requestSaveBindBoxDevice(String boxno, String userno,
                                         final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("boxno", boxno);
        maps.put("userno", userno);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.SAVEBINDBOXDEVICE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("SAVEBINDBOXDEVICE", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();

                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 查询我的设备数据
     *
     * @param httpFlag
     */
    public void requestGetBindBoxDevice(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.GETBINDBOXDEVICE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("GETBINDBOXDEVICE", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyDeviceList myDeviceList = gson.fromJson(dataStr, MyDeviceList.class);
                        actionHandle
                                .handleActionSuccess(httpFlag, myDeviceList);
                    }
                });
    }

    /**
     * 新修改密码接口
     *
     * @param newpassword
     * @param oldpassword
     * @param httpFlag
     */
    public void requestChangePassword(String newpassword, String oldpassword,
                                      final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("newpassword", newpassword);
        maps.put("oldpassword", oldpassword);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.CHANGEPASSWORD), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("CHANGEPASSWORD", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();

                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 新修改基本信息接口
     *
     * @param nick_name
     * @param sex
     * @param birthday
     * @param weight
     * @param height
     * @param sick_history
     * @param card_id
     * @param nation
     * @param httpFlag
     */
    public void requestUpdateUser(String nick_name, String sex,
                                  String birthday, String weight, String height, String sick_history, String card_id, String nation, String rname,
                                  final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        if (nick_name != null) {
            maps.put("nick_name", nick_name);
        }
        if (sex != null) {
            maps.put("sex", sex);
        }
        if (birthday != null) {
            maps.put("birthday", birthday);
        }
        if (weight != null) {
            maps.put("weight", weight);
        }
        if (height != null) {
            maps.put("height", height);
        }
        if (sick_history != null) {
            maps.put("sick_history", sick_history);
        }
        if (card_id != null) {
            maps.put("card_id", card_id);
        }
        if (nation != null) {
            maps.put("national", nation);
        }
        if (rname != null) {
            maps.put("rname", rname);
        }

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.UPDATEUSER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 测评计算结果
     *
     * @param map
     * @param evalFlag
     * @param httpFlag
     */
    public void requestEvaluationCalculate(HashMap<String, String> map,
                                           String evalFlag, final String httpFlag) {
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("evalFlag", evalFlag);
        String json = new Gson().toJson(map);
        mapreq.put("answer", json);
        //		mapreq.put("answer","\""+json.replace("\"", "\\\"")+"\"");
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.CALCULATE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        Result result2 = gson.fromJson(dataStr, Result.class);
                        actionHandle.handleActionSuccess(httpFlag, result2);
                    }
                });
    }

    /**
     * 退出应用
     *
     * @param httpFlag
     */
    public void requestLogout(final String httpFlag) {

        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("code", MyApplication.getToken());
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, Apis.getCommonUrl(Act.LOGOUT_NEW),
                new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    /**
     * 删除设备
     *
     * @param id
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestDelDeviceList(String id, final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("id", id);


        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DELTEDEVICE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 绑定设备列表
     *
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestgetNoBindDeviceList(final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("page", "1");
        mapreq.put("size", "20");

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.NOBINDDEVICELIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Type type = new TypeToken<List<DeviceItem>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DeviceItem> devicelist = gson.fromJson(list, type);
                        actionHandle.handleActionSuccess(httpFlag, devicelist);
                    }
                });
    }

    /**
     * 咨询列表
     *
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestConsultList(String pageNo, String pageSize,
                                   final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.COMMUNICATELIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        ConsulList commonList = gson.fromJson(dataStr,
                                ConsulList.class);
                        actionHandle.handleActionSuccess(httpFlag, commonList);
                    }
                });
    }

    /**
     * 咨询详情
     *
     * @param mainid
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestConsultInfo(String mainid, String pageNo,
                                   String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        mapreq.put("mainid", mainid);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.COMMUNITCATEDETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        ConsulReplyList commonList = gson.fromJson(dataStr,
                                ConsulReplyList.class);
                        actionHandle.handleActionSuccess(httpFlag, commonList);
                    }
                });
    }

    /**
     * 发布咨询
     *
     * @param title
     * @param content
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestPublishConsul(String title, String content,
                                     final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("title", title);
        mapreq.put("data", content);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.PUBLISHCOMMUNICATE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Type type = new TypeToken<List<DeviceItem>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DeviceItem> devicelist = gson.fromJson(list, type);
                        actionHandle.handleActionSuccess(httpFlag, devicelist);
                    }
                });
    }

    /**
     * 发布咨询
     *
     * @param url
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestRecommendedDetails(String url, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader, url, new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Type type = new TypeToken<List<TopicItem>>() {
                }.getType();
                Gson gson = new MyGsonBuilder().createGson();
                List<TopicItem> devicelist = gson.fromJson(list, type);
                TopicItem item = null;
                if (devicelist != null && devicelist.size() > 0) {
                    item = devicelist.get(0);
                }
                actionHandle.handleActionSuccess(httpFlag, item);
            }
        });
    }

    /**
     * 医嘱头部详情
     *
     * @param httpFlag
     */
    public void requestGetBannerById(String b_id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("b_id", b_id);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.GETBANNERBYID), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("AdviceBanner", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        AdviceBanner adviceBanner = gson.fromJson(dataStr,
                                AdviceBanner.class);
                        actionHandle
                                .handleActionSuccess(httpFlag, adviceBanner);
                    }
                });
    }

    /**
     * 收藏列表
     *
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    @SuppressWarnings("unused")
    public void requestCollectList(String pageNo, String pageSize,
                                   final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.COLLECTLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        // Log.i("dbg", "==>" + result);
                        // {"code":"0","data":{"list":[{"descs":"<p>&nbsp;</p>\r\n<p><strong>健肺按摩：沿肺经经常按摩，可增强肺气。路线是：从中焦</strong><strong>(</strong><strong>肚脐与膈的中点</strong><strong>)</strong><strong>一下落大肠一上行绕胃一上行肺系一咽一肩臂外侧一小臂外侧一大拇指端，经常按摩可宣通肺气，预防感冒。</strong></p>\r\n<p><img alt=\"\" src=\"http://tech.nf1000.com/u/cms/www/201501/23135436kb0o.jpg\" style=\"width: 400px; height: 600px;\" /></p>\r\n","docid":"7307","id":124,"img":"http://tech.nf1000.com/u/cms/www/201501/23135436kb0o.jpg","title":"健肺按摩","updatetime":1423561475000,"url":"http://tech.nf1000.com/search/a_ajax_list.jspx?siteId=1&pageNo=1&count=10&articleId=7307","userid":"rrr"},{"descs":"<p><img src=\"http://baotang.tfysw.com/uploadfile/2013/0123/20130123023215948.jpg\" style=\"width: 600px; height: 400px; top: 95px; left: 55.5px; display: block;\" title=\"点击查看源网页\" /></p>\r\n<p>&nbsp;</p>\r\n<pre>\r\n<span style=\"font-size:14px;\">小恩今天为您带来了滋补的美味粥哦，百闻不如一见，还是随小恩一起来看看吧。</span></pre>\r\n<p style=\"text-align: center;\"><strong><span style=\"font-size:14px;\">鸡肉皮蛋粥</span></strong></p>\r\n<p><span style=\"font-size:14px;\">【材料】：鸡肉200克，皮蛋2个，粳米200～300克，姜、葱、盐等调味品适量。</span></p>\r\n<p>&nbsp;</p>\r\n<p><span style=\"font-size:14px;\">【做法】：先将鸡肉切成小块，加水煲成浓汁，用浓汁与粳米同煮。待粥将熟时加入切好的皮蛋和煲好的鸡肉，加适量的调味品。</span></p>\r\n<p>&nbsp;</p>\r\n<p><span style=\"font-size:14px;\">【功效】：补益气血、滋养五脏、开胃生津的作用，尤其适用于气血亏损的人。</span></p>\r\n","docid":"17798","id":125,"img":"http://baotang.tfysw.com/uploadfile/2013/0123/20130123023215948.jpg","title":"酉时(17点～19点) 冬季药粥：鸡肉皮蛋粥","updatetime":1423561484000,"url":"http://tech.nf1000.com/search/a_ajax_list.jspx?siteId=1&pageNo=1&count=10&articleId=17798","userid":"rrr"},{"descs":"<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \">&nbsp;</p>\r\n<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \"><img alt=\"\" src=\"http://static.magme.cn/snsimg/20130617/max_800_1371436058551375007.jpg\" style=\"width: 299px; height: 224px;\" /></p>\r\n<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \">&nbsp;</p>\r\n<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \">&nbsp;</p>\r\n<pre class=\"p0\" style=\"margin-top: 0pt; margin-bottom: 0pt;\">\r\n<span style=\"font-size:16px;\">小恩又来啦，每天这么守时，为小恩鼓鼓掌嘛~~嘿嘿~~宁神静心，我们来按按太阳穴~~</span></pre>\r\n<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \">&nbsp;</p>\r\n<p class=\"p0\" style=\"margin-top:0pt; margin-bottom:0pt; \"><span style=\"font-size:16px;\">2<font face=\"宋体\">．按揉太阳穴：按揉太阳穴，顺时针旋转，一周为一拍，约做</font><font face=\"Times New Roman\">32</font><font face=\"宋体\">拍，可疏风解表、清脑明日、止头痛。</font></span><span style=\"font-size: 10.5pt;\"><o:p></o:p></span></p>\r\n","docid":"17266","id":130,"img":"http://static.magme.cn/snsimg/20130617/max_800_1371436058551375007.jpg","title":"临床常见疾病的保健操——高血压——十分钟降压保健操","updatetime":1423895520000,"url":"http://tech.nf1000.com/search/a_ajax_list.jspx?siteId=1&pageNo=1&count=10&articleId=17266","userid":"rrr"},{"descs":"<p><strong>刺激足厥阴肝经，可祛除雀斑，理气宽胸，改善晦暗肤色及乳房胀痛、乳房发育不良。</strong></p>\r\n<p>&nbsp;</p>\r\n<p><strong><img alt=\"\" src=\"http://tech.nf1000.com/u/cms/www/201501/231638487anj.jpg\" style=\"width: 400px; height: 600px;\" /></strong></p>\r\n","docid":"7293","id":136,"img":"http://tech.nf1000.com/u/cms/www/201501/231638487anj.jpg","title":"美容按摩--足�

                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        CollectList commonList = gson.fromJson(dataStr,
                                CollectList.class);
                        actionHandle.handleActionSuccess(httpFlag, commonList);
                    }
                });
    }

    /**
     * 文章收藏
     *
     * @param docid
     * @param title
     * @param imgurl
     * @param content
     * @param httpFlag
     */
    public void CollectAdd(String docid, String title, String imgurl, String content,
                           final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("docid", docid);
        mapreq.put("title", title);
        mapreq.put("content", content);

        mapreq.put("imgurl", imgurl);


        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.Date_COLLECTION), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }


    /**
     * 获得文章
     *
     * @param httpFlag
     * @param httpFlag
     */
    public void Get_Gain_Date(String page, String page_size, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("page", page);
        mapreq.put("page_size", page_size);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.Gain_Date), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        RegimenContentExtra extra = gson.fromJson(dataStr, RegimenContentExtra.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 反馈
     *
     * @param httpFlag
     */
    public void requestFeedback(String content, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("message", content);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.FEEDBACK), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }


    /**
     * 修改密码
     *
     * @param phone
     * @param password
     * @param code
     * @param httpFlag
     */
    public void requestBackPassword(String phone, String password, String code,
                                    final String httpFlag) {

        Map<String, String> map = new HashMap<String, String>();

        map.put("phone", phone);
        map.put("password", password);
        map.put("code", code);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.BACKPASSWORD), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("backPassword", result);
                        String dataStr = JsonUtils.getFiledData(result, "code");
                        actionHandle.handleActionSuccess(httpFlag, dataStr);
                    }
                });
    }

    /**
     * 获取手机验证码
     *
     * @param mobile
     * @param type
     */
    public void requestMSGCode(String mobile, final String type, final String flag) {
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("mobile", mobile);
        mapreq.put("type", type);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, type);
        client.request(Method.POST, mapreq, null,
                Apis.getCommonUrl(Act.MESGCODE), new DataParse() {
                    @Override
                    public void onParse(String result) {
//                        String dataStr = JsonUtils.getFiledData(result, "code");
                        actionHandle.handleActionSuccess(flag, result);
                    }
                });
    }

    /**
     * 验证手机验证码
     *
     * @param mobile
     * @param type
     */
    public void requestMSGCodeCode(String mobile, String vcode, final String type, final String yanzheng) {
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("mobile", mobile);
        mapreq.put("vcode", vcode);
        mapreq.put("type", type);
        // String md5 = MD5Util.getMD5String("verifycode15701263175123456nf");
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, type);
        client.request(Method.POST, mapreq, null,
                Apis.getCommonUrl(Act.MESGCODE_CODE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(yanzheng, result);
                    }
                });
    }

    /**
     * 保存头像
     *
     * @param imgurl
     * @param httpFlag
     */
    public void requestSaveHeader(String imgurl, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("imgurl", imgurl);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.SAVEHEADER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 注册
     *
     * @param phone
     * @param password
     * @param httpFlag
     */
    public void requestPhoneRegister(String phone,
                                     String password, String vcode, String vtype, final String httpFlag) {
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("phone", phone);
        maps.put("password", password);
        maps.put("vcode", vcode);
        maps.put("vtype", vtype);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, null,
                Apis.getCommonUrl(Act.PHONEREGISTER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "code");
                        actionHandle.handleActionSuccess(httpFlag, dataStr);
                    }
                });
    }

    /**
     * 获取医生对话接口
     *
     * @param doctorid
     * @param page
     * @param page_size
     * @param httpFlag
     */
    public void requestMyDoctorMessage(String doctorid, String page,
                                       String page_size, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("doctorid", doctorid);
        maps.put("page", page);
        maps.put("page_size", page_size);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.MYDOCTORMESSAGE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyDoctorMeassageDetails message = gson.fromJson(
                                dataStr, MyDoctorMeassageDetails.class);
                        actionHandle.handleActionSuccess(httpFlag, message);
                    }
                });
    }

    /**
     * 提问问题
     *
     * @param doctoruserid
     * @param data
     * @param httpFlag
     */
    public void requestAddMyDoctorMeassage(String doctoruserid, String data,
                                           final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("doctoruserid", doctoruserid);
        try {
            maps.put("data", new String(data.getBytes("utf-8"), "iso-8859-1"));
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDMYDOCTORMESSAGE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("ADDMYDOCTORMESSAGE", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyDoctorMeassageDetails message = gson.fromJson(
                                dataStr, MyDoctorMeassageDetails.class);
                        actionHandle.handleActionSuccess(httpFlag, message);
                    }
                });
    }

    /**
     * 问健康追加问题
     *
     * @param mainnoteid
     * @param data
     * @param httpFlag
     */
    public void requestAddnoteCommit(String mainnoteid, String data,
                                     final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("mainnoteid", mainnoteid);
        maps.put("data", data);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDNOTECOMMIT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("ADDMYDOCTORMESSAGE", result);
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 获取健康详情
     *
     * @param httpFlag
     */
    public void requestGethealthInfo(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.HEALTHYINFOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthyInfo healthyInfo = gson.fromJson(dataStr, HealthyInfo.class);
                        actionHandle.handleActionSuccess(httpFlag, healthyInfo);
                    }
                });
    }

    /**
     * 获取发病倾向详情
     *
     * @param disease_name
     * @param httpFlag
     */
    public void requestGetSickFo(String disease_name, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("disease_name", disease_name);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.GETSICKINFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DiseaseTrend diseaseTrend = gson.fromJson(dataStr,
                                DiseaseTrend.class);
                        actionHandle
                                .handleActionSuccess(httpFlag, diseaseTrend);
                    }
                });
    }

    /**
     * 获取个人方案
     *
     * @param httpFlag
     */
    public void requestGetSchemeByUser(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.GETSCHEMEBYUSER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        //						MyPlanRecommend myPlanRecommend = gson.fromJson(list, MyPlanRecommend.class);
                        List<RecommendList> recommendLists = gson.fromJson(list, new TypeToken<List<RecommendList>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, recommendLists);
                    }
                });
    }

    /**
     * 增加个人方案
     *
     * @param httpFlag
     */
    public void requestAddToUser(String scheme_id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("scheme_id", scheme_id);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDTOUSER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyPlanRecommend myPlanRecommend = gson.fromJson(dataStr, MyPlanRecommend.class);
                        actionHandle.handleActionSuccess(httpFlag,
                                myPlanRecommend);
                    }
                });
    }

    /**
     * 删除个人方案
     *
     * @param httpFlag
     */
    public void requestDelSchemeByUserid(String schemeid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("schemeid", schemeid);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.DELSCHEMEBYUSERID), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyPlanRecommend myPlanRecommend = gson.fromJson(
                                dataStr, MyPlanRecommend.class);
                        actionHandle.handleActionSuccess(httpFlag,
                                myPlanRecommend);
                    }
                });
    }

    /**
     * 个人方案详情
     *
     * @param httpFlag
     */
    public void requestMyPlanSchemeDetails(String schemeid,
                                           final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("schemeid", schemeid);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.SCHEMEDETAILS), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        SchemeDetails schemeDetails = gson.fromJson(dataStr,
                                SchemeDetails.class);
                        actionHandle.handleActionSuccess(httpFlag,
                                schemeDetails);
                    }
                });
    }

    /**
     * 获取个人方案类型
     *
     * @param httpFlag
     */
    public void requestchemeCategoryList(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.SCHEMECATEGORYLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr,
                                "caterogy");
                        Type type = new TypeToken<List<SchemeCaterogy>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SchemeCaterogy> schemeCategory = gson.fromJson(
                                list, type);
                        actionHandle.handleActionSuccess(httpFlag,
                                schemeCategory);
                    }
                });
    }

    /**
     * 获取个人方案列表
     *
     * @param httpFlag
     */
    public void requestSchemeList(String category_id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("category_id", category_id);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.SCHEMELIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("---SCHEMELIST-----", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Type type = new TypeToken<List<SchemeCaterogyList>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SchemeCaterogyList> sCaterogyLists = gson
                                .fromJson(list, type);
                        actionHandle.handleActionSuccess(httpFlag,
                                sCaterogyLists);
                    }
                });
    }

    /**
     * 设备数据
     *
     * @param httpFlag
     */
    public void requestGetData(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATALIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DeviceData> newDeviceDataLists = gson
                                .fromJson(
                                        dataStr,
                                        new TypeToken<List<DeviceData>>() {
                                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag,
                                newDeviceDataLists);
                    }
                });
    }

    /**
     * 葡萄糖值接口
     *
     * @param httpFlag
     */
    public void requestAddDeviceGlucose(String before_glucose,
                                        String after_glucose, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        if (TextUtils.isEmpty(before_glucose)) {
            maps.put("after_glucose", after_glucose);
        } else {
            maps.put("before_glucose", before_glucose);
        }
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDDEVICEGLUCOSE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        LogUtil.i("ADDDEVICEGLUCOSE", result);
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 血压接口
     *
     * @param httpFlag
     */
    public void requestAddDeviceBlood(int high, int low, int heart_rate, String type, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("low", low + "");
        maps.put("high", high + "");
        maps.put("heart_rate", heart_rate + "");
        maps.put("ptype", type);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDDEVICEGBLOOD), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 添加血糖  新接口
     *
     * @param glucose  血糖值
     * @param ptype    添加方式 1手动 2恩福产品
     * @param type     血糖类型 1凌晨 2早餐前 3早餐后 4午餐前 5午餐后 6晚餐前 7晚餐后 8睡前
     * @param httpFlag
     */
    public void requestAddDeviceGlucoseNew(String glucose,
                                           String ptype, String type, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> maps = new HashMap<String, String>();
        maps.put("glucose", glucose);
        maps.put("ptype", ptype);
        maps.put("type", type);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADD_BLOOD_SUGAR_NEW), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        LogUtil.i("ADDDEVICEGLUCOSE", result);
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 添加体温数据
     *
     * @param ptype    添加方式 1手动 2恩福产品
     * @param temp     温度值
     * @param httpFlag
     */
    public void addTemperatureData(String ptype, String temp, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> maps = new HashMap<String, String>();
        maps.put("ptype", ptype);
        maps.put("temp", temp);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADD_TEMPERATURE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 请求体温数据
     *
     * @param dataType 数据格式 默认是list 主页显示是array
     * @param pageNo   页码
     * @param pageSize 每页数量
     * @param httpFlag
     */
    public void requestTemperatureData(final String dataType, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> maps = new HashMap<String, String>();
        maps.put("dataType", dataType);
        maps.put("pageNo", pageNo);
        maps.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.REQUEST_TEMPERATURE_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        if ("array".equals(dataType)) {//返回array的样式
                            DataDetailExtra extra = gson.fromJson(dataStr, DataDetailExtra.class);
                            actionHandle.handleActionSuccess(httpFlag, extra);
                        } else {
                            actionHandle.handleActionSuccess(httpFlag, dataStr);
                        }

                    }
                });
    }

    /**
     * 请求删除体温数据
     *
     * @param httpFlag
     */
    public void delTemperatureData(final String deviceType, String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("id", id);
        maps.put("deviceType", deviceType);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.DELETE_TEM), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 删除历史数据
     *
     * @param id         数据id
     * @param deviceType 数据类型
     * @param httpFlag
     */
    public void delHistoryData(String id, String deviceType, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("id", id);
        maps.put("deviceType", deviceType);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.DELETE_HISTORY_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 上传手环数据,1.6版接口
     *
     * @param data     [
     *                 {
     *                 "time":"2016-02-04",
     *                 "calorie":"1",
     *                 "steps":"1",
     *                 "distance":"1",
     *                 "sleep":{
     *                 "quality":"1",		//睡眠质量
     *                 "sleepDuration":"1",//睡眠时长
     *                 "awakeDuration":"1",//清醒时长
     *                 "lightDuration":"1",//浅睡时长
     *                 "deepDuration":"1", //深睡时长
     *                 "totalDuration":"1",//总的时间
     *                 "awakeCount":"1",	//清醒次数
     *                 "detail":{
     *                 "0:00-1:00":"noSleep",
     *                 "1:30-2:40":"deepSleep",
     *                 "3:00-3:20":"shallowSleep"
     *                 }
     *                 }
     *                 }
     *                 ]
     * @param httpFlag
     */
    public void uploadBraceletData(String data, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("bracelet", data);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDDEVICEBRANCELET), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 手环数据接口,参数不能传递null或者"";
     *
     * @param httpFlag
     */
    public void requestAddBracelet(String calorie, String setnum,
                                   String energy, String sleep, String kilometer, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("calorie", calorie);
        maps.put("setnum", setnum);
        maps.put("energy", energy);
        maps.put("sleep", sleep);
        maps.put("kilometer", kilometer);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDDEVICEBRANCELET), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 身高体重接口
     *
     * @param httpFlag
     */
    public void requestAddDeviceBalance(String weight, String height,
                                        String fat_value, String skeleton_value, String muscle_value,
                                        String viscus_fat_value, String water_value, String heat_value,
                                        String user_age, String type, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("weight", weight);
        maps.put("height", height);
        maps.put("fat_value", fat_value);
        maps.put("skeleton_value", skeleton_value);
        maps.put("muscle_value", muscle_value);
        maps.put("viscus_fat_value", viscus_fat_value);
        maps.put("water_value", water_value);
        maps.put("heat_value", heat_value);
        maps.put("user_age", user_age);
        maps.put("ptype", type);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.ADDDEVICEBALANCE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String msg = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, msg);
                    }
                });
    }

    /**
     * 新获取设备数据banner
     *
     * @param httpFlag
     */
    public void requestGetDataBanner(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.GETDATABANNER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DataBanner> dataBanners = gson.fromJson(dataStr,
                                new TypeToken<List<DataBanner>>() {
                                }.getType());
                        actionHandle.handleActionSuccess(httpFlag, dataBanners);
                    }
                });
    }

    /**
     * 新获医嘱数据bannerList
     *
     * @param httpFlag
     */
    public void requestGetDataBannerList(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, maps, mapHeader,
                Apis.getCommonUrl(Act.GETDATABANNERLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("GETDATABANNERLIST", result);
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<BannerList> bannerList = gson.fromJson(dataStr,
                                new TypeToken<List<BannerList>>() {
                                }.getType());
                        actionHandle.handleActionSuccess(httpFlag, bannerList);
                    }
                });
    }

    /**
     * 数据详情
     *
     * @param httpFlag
     */
    public void requestDataDetails(String deviceType, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("deviceType", deviceType);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATA_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DataDetailExtra extra = gson.fromJson(dataStr, DataDetailExtra.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 历史数据
     *
     * @param deviceType
     * @param pageNo
     * @param pagesize
     * @param httpFlag
     */
    public void requestDataHistory(String deviceType, String pageNo, String pagesize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("deviceType", deviceType);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pagesize", pagesize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATA_HISTORY), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<HistoryVo> extra = gson.fromJson(dataStr1, new TypeToken<List<HistoryVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 数据详情
     *
     * @param deviceType
     * @param pageNo
     * @param httpFlag
     */
    public void requestDataDetailsnew(String deviceType, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("deviceType", deviceType);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATA_DETAILNEW), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DataDetailExtra extra = gson.fromJson(dataStr, DataDetailExtra.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 数据详情
     *
     * @param deviceType
     * @param pageNo
     * @param httpFlag
     */
    public void requestDataDetailsnew2(String deviceType, String dataType, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("deviceType", deviceType);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageNo", pageNo);
        mapreq.put("dataType", dataType);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATA_DETAILNEW), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DataDetailExtra extra = gson.fromJson(dataStr, DataDetailExtra.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 设备参数
     *
     * @param httpFlag
     */
    public void requestDeviceData(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl("/m/doctor!getUserWeimoburlByUserid.action"), new DataParse() {
                    @Override
                    public void onParse(String result) {
//                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        MyDeviceData extra = gson.fromJson(result, MyDeviceData.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }


    /**
     * 成员列表
     *
     * @param familyid
     * @param httpFlag
     */
    public void requestFamilyList(String familyid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("familyid", familyid);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.FAMILY_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String deviceData = JsonUtils.getFiledData(dataStr,
                                "data");
                        Type type = new TypeToken<List<Person>>() {
                        }.getType();
                        Gson gson = new MyGsonBuilder().createGson();
                        List<Person> devicelist = gson.fromJson(deviceData,
                                type);
                        actionHandle.handleActionSuccess(httpFlag, devicelist);
                    }
                });
    }

    /**
     * 家庭成员操作
     *
     * @param httpFlag
     */
    public void requestFamilyManage(String manageFlag, String memberid,
                                    String password, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("manageFlag", manageFlag);
        mapreq.put("memberid", memberid);
        if (password != null) {
            mapreq.put("password", password);
        }
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.USER_FAMILY_MANAGE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 数据提交
     *
     * @param httpFlag
     */
    public void requestMSG_RECEIVE(String msg, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("msg", msg);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.MSG_RECEIVE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 手动录入数据
     *
     * @param httpFlag
     */
    public void requestDATA_MANAGE_ADD(HashMap<String, String> mapreq,
                                       final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DATA_MANAGE_ADD), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });
    }

    /**
     * 医嘱信息列表
     *
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    public void requestDOCTOR_ADVICE_LIST(String pageNo, String pageSize,
                                          String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("doctorid", doctorid);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_ADVICE_LIST), new DataParse() {
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DoctorAdviceItem> extra = gson.fromJson(list, new TypeToken<List<DoctorAdviceItem>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 医嘱详情
     *
     * @param autoid
     * @param httpFlag
     */
    public void requestDOCTOR_ADVICE(String autoid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("autoid", autoid);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_ADVICE), new DataParse() {
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DADetails details = gson.fromJson(dataStr,
                                DADetails.class);
                        actionHandle.handleActionSuccess(httpFlag, details);
                    }
                });
    }

    /**
     * 我的提醒列表
     *
     * @param httpFlag
     */
    public void requestRemindList(String pageNo, String pageSize,
                                  final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();
        // mapreq.put("pageNo", pageNo);
        // mapreq.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_REMIND), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        RemindList remindList = gson.fromJson(dataStr,
                                RemindList.class);
                        actionHandle.handleActionSuccess(httpFlag, remindList);
                    }
                });
    }

    /**
     * 扫一扫
     *
     * @param httpFlag
     */
    public void requestRemindScan(String autoid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("autoid", autoid);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_REMIND_SCAN), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Log.i("dbg", "==>" + result);
                        // String dataStr = JsonUtils.getFiledData(result,
                        // "data");
                        // Gson gson = new MyGsonBuilder().createGson();
                        // RemindList remindList = gson.fromJson(dataStr,
                        // RemindList.class);
                        // actionHandle.handleActionSuccess(httpFlag,
                        // remindList);
                    }
                });
    }

    /**
     * 设备绑定
     *
     * @param dcNo
     * @param userNo
     * @param httpFlag
     */
    public void requestBindDevice(String dcNo, String userNo,
                                  final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("boxno", dcNo);
        mapreq.put("userno", userNo);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.BINDDEVICE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String code = JsonUtils.getFiledData(result, "code");
                        actionHandle.handleActionSuccess(httpFlag, code);
                    }
                });
    }

    /**
     * 新改的测评列表接口
     */

    public void requestCheckList(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);

        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CHECK_LiST), new DataParse() {

            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String checkData = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                Type type = new TypeToken<List<CheckItem>>() {
                }.getType();
                List<CheckItem> checkItems = gson.fromJson(checkData, type);
                actionHandle.handleActionSuccess(httpFlag, checkItems);
            }
        });
    }

    /**
     * 问健康提交问题
     *
     * @param data
     * @param doctorid 提问医生的时候
     * @param httpFlag
     */
    public void requestConsultCommit(String data, String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("data", data);

        if (!TextUtils.isEmpty(doctorid)) {
            mapreq.put("doctorid", doctorid);
        }
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.CONSULT_COMMIT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        // TODO Auto-generated method stub
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    /**
     * 问健康列表接口
     *
     * @param flag     =0 0代表总体 1代表已回复 2 代表 未回复
     * @param pageNo
     * @param pageSize
     */

    public void requestConsultList(String flag, String pageNo, String pageSize,
                                   final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("flag", flag);
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.CONSULT_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        ConsultHistory history = gson.fromJson(dataStr, ConsultHistory.class);
                        actionHandle.handleActionSuccess(httpFlag, history);
                    }
                });
    }

    /**
     * 问健康 问题详情
     *
     * @param mainid
     * @param pageNo
     * @param pageSize
     */

    public void requestConsultDetails(String mainid, String log_id, String pageNo,
                                      String pageSize, final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("mainid", mainid);
        mapreq.put("log_id", log_id);//消息中心多加参数值
        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.NEWCONSULT_DETAILS), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        ConsultDetail history = gson.fromJson(dataStr, ConsultDetail.class);
                        actionHandle.handleActionSuccess(httpFlag, history);
                    }
                });

    }

    /**
     * 尿检接口
     */

    public void requestAddDeviceUrine(String glucose_value,
                                      String bilirubin_value, String acetone_body_value,
                                      String scale_value, String red_cell_value, String ph_value,
                                      String urine_protein_value, String urobilinogen_value,
                                      String nitrite_value, String white_cell_value, String type, final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("glucose_value", glucose_value);
        map.put("bilirubin_value", bilirubin_value);
        map.put("acetone_body_value", acetone_body_value);
        map.put("scale_value", scale_value);
        map.put("red_cell_value", red_cell_value);
        map.put("ph_value", ph_value);
        map.put("urine_protein_value", urine_protein_value);
        map.put("urobilinogen_value", urobilinogen_value);
        map.put("nitrite_value", nitrite_value);
        map.put("white_cell_value", white_cell_value);
        map.put("ptype", type);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.ADD_DEVICE_URINE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });

    }

    /**
     * 问健康 列表删除
     *
     * @param mainid
     */

    public void requestConsultDelete(String mainid, final String httpFlag) {

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("mainid", mainid);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.CONSULT_DELETE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, null);
                    }
                });

    }


    public void requestSearchDoctor(String keywords, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        try {
            map.put("keywords", new String(keywords.getBytes("utf-8"), "iso-8859-1"));
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.SEARCH_DOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<MyDoctor> myDoctor = gson.fromJson(dataStr, new TypeToken<List<MyDoctor>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }


    /**
     * 获取推荐医生
     *
     * @param page
     * @param pageSize
     * @param httpFlag
     */
    public void requestRecommendDoctorlist(String page, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("page", page);
        map.put("page_size", pageSize);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.RECOMMEND_DOCTOR_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<MyDoctor> myDoctor = gson.fromJson(list, new TypeToken<List<MyDoctor>>() {
                        }.getType());

                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });


    }

    /**
     * 获取医生详情
     *
     * @param doctorId
     * @param httpFlag
     */
    public void requestDoctorDetail(String doctorId, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DoctorHome doctorDetail = gson.fromJson(dataStr, DoctorHome.class);
                        actionHandle.handleActionSuccess(httpFlag, doctorDetail);
                    }
                });
    }

    /**
     * 获取医生详情
     *
     * @param doctorId
     */
    public void requestDoctorDetail2(String doctorId) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.DOC_DETAIL);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_BASE_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        DoctorDetailBean doctorDetail = gson.fromJson(dataStr, DoctorDetailBean.class);
                        actionHandle.handleActionSuccess(Act.Flag.DOC_DETAIL, doctorDetail);
                    }
                });
    }

    /**
     * 获取医生  评论列表
     *
     * @param httpFlag
     */
    public void requestDoctorDetailComment(String page, String pagesize, String doctorId, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_DETAIL_COMMENT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String totalCount = JsonUtils.getFiledData(result, "totalCount");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DoctorCommnetVo> doctorCommnetVo = gson.fromJson(list, new TypeToken<List<DoctorCommnetVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag + "-" + totalCount, doctorCommnetVo);
                    }
                });
    }

    /*
     *获取医生  评论列表
     * @param httpFlag
     */
    public void requestDoctorDetailComment2(String page, String pagesize, String doctorId, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_DETAIL_COMMENT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                       /* String totalCount = JsonUtils.getFiledData(result, "totalCount");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DoctorCommnetVo> doctorCommnetVo = gson.fromJson(list, new TypeToken<List<DoctorCommnetVo>>() {
                        }.getType());*/
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    /*
     *获取医生  评论列表
     * @param httpFlag
     */
    public void requestDoctorDetailComment3(String page, String pagesize, String doctorId, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_DETAIL_COMMENT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String totalCount = JsonUtils.getFiledData(result, "totalCount");
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DoctorCommnetVo> doctorCommnetVo = gson.fromJson(list, new TypeToken<List<DoctorCommnetVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, doctorCommnetVo);
                    }
                });
    }

    //我的积分
    public void requestMyScore(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.MY_SCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        Score score = gson.fromJson(dataStr, Score.class);
                        actionHandle.handleActionSuccess(httpFlag, score);
                    }
                });

    }

    //添加积分
    public void requestAddScore(String type, final String httpFlag) {
        Map<String, String> map = getMapHeader();

        map.put("type", type);

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.ADD_MY_SCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });

    }

    //添加积分
    public void requestZdyAddScore(String score, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("score", score);

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.ZDY_ADD_MY_SCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });

    }

    //消费积分
    public void requestReduceScore(String score, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("score", score);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.REDUCE_MY_SCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });

    }

    //积分历史记录
    public void requestIntergrationHostory(String page, String pagesize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.MY_SCORE_HOSTORY), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<BillVo> praises = gson.fromJson(list, new TypeToken<List<BillVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });

    }

    /**
     * 获取我的评估信息
     *
     * @param accepts  wait:未接受 execute:进行中 success:已成功
     * @param httpFlag
     */
    public void requestPraise(String accepts, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("accepts", accepts);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.MY_PRAISE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<Praise> praises = gson.fromJson(list, new TypeToken<List<Praise>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });
    }

    /**
     * 请求购买评估,创建订单
     *
     * @param doctorId
     * @param httpFlag
     */
    @Deprecated
    public void requestBuy(String doctorId, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("doctorid", doctorId);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.CREATE_ORDER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<Praise> praises = gson.fromJson(list, new TypeToken<List<Praise>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });
    }

    /**
     * /m/deleteMajoreva.action
     * 删除我的评估记录
     *
     * @param major_id 评估记录id
     * @param httpFlag
     */
    public void requestDelParise(String major_id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("major_id", major_id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DEL_PRAISE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, "");
                    }
                });
    }

    public void requestGetOrderDetail(String major_id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("major_id", major_id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.GET_ORDER_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<Praise> praises = gson.fromJson(list, new TypeToken<List<Praise>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });
    }

    /**
     * 个人计划——医生运动详情
     *
     * @param httpFlag
     */
    public void requestRecommendSportInfo(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("id", id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.GET_RECOM_SPORT_INFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SportInfo> praises = gson.fromJson(dataStr, new TypeToken<List<SportInfo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });
    }

    /**
     * 个人计划——医生运动列表
     *
     * @param httpFlag
     */
    public void requestRecommendSportList(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.GET_SPORT_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<RecommendSport> praises = gson.fromJson(dataStr, new TypeToken<List<RecommendSport>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, praises);
                    }
                });
    }

    public void requestQRCode(String url, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, url, new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, result);
            }
        });

    }

    /**
     * 完成运动
     *
     * @param schemeid
     * @param httpFlag
     */
    public void requestCompleteSport(String schemeid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("id", schemeid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.COMPLETE_SPORT), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });

    }

    /**
     * 加载我的家人信息
     *
     * @param httpFlag
     */
    public void requestMyFamily(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.MY_FAMILY), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<Family> accounts = gson.fromJson(list, new TypeToken<List<Family>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, accounts);
            }
        });
    }

    /**
     * /m/mFamilyBindBindBoxdevice.action
     *
     * @param device_num
     * @param device_pwd
     * @param httpFlag
     */
    @Deprecated
    public void requestBindBoxDevice(String device_num, String device_pwd,
                                     final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("account", device_num);
        map.put("password", device_pwd);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.BIND_BOX_DEVICE), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });


    }

    /**
     * 老年机
     *
     * @param httpFlag
     */
    @Deprecated
    public void requestOldr(String iemi, String name, String phone, String code, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("imei", iemi);
        map.put("nicks", name);
        map.put("account", phone);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.BIND_APP_OLD), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });


    }

    /**
     * @param type     <ol><li>family:监管机<li>oldMobile:老年手机<li>simple:App用户
     * @param device   <li>family:设备号<li>oldMobile:imei号<li>simple:App账号
     * @param userno   <li>family:用户编号(多用户id使用,隔开)<li>oldMobile:手机号码<li>simple:App密码
     * @param nick     绑定老年手机需要nick数据
     * @param httpFlag
     */
    public void requestAcount(String type, String device, String userno, String vcode, String vtype, String nick, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("type", type);
        map.put("device", device);
        map.put("userno", userno);
        map.put("vcode", vcode);
        map.put("vtype", vtype);
        if (!TextUtils.isEmpty(nick)) {
            map.put("nick", nick);
        }
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.BIND_ACCOUNT), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });


    }

    /**
     * 请求已绑定的账号列表/m/mFamilyLoadAccunt.action
     *
     * @param httpFlag
     */
    public void requestBindAccount(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.AlBIND_ACCOUNT), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<Account> accounts = gson.fromJson(list, new TypeToken<List<Account>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, accounts);
            }
        });


    }

    /**
     * 解绑健管机
     *
     * @param account
     * @param httpFlag
     */
    public void requestUnBindBox(String account, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", account);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UNBING_BOX), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    /**
     * 解绑爱尚康账号
     *
     * @param account
     * @param httpFlag
     */
    public void requestUnBindAppAccount(String account, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", account);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UNBING_APP_ACCOUNT), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    /*
     * 解除绑定  老人机
	 */
    public void requestUnBindOld(String account, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", account);

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UNBING_OLD_ACCOUNT), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    /**
     * 获取绑定的成员
     *
     * @param touserid
     * @param httpFlag
     */
    public void requestGetFamilyMemberData(String touserid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", touserid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_ACCOUNT_LATEST_DATA), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "deviceData");
                Gson gson = new MyGsonBuilder().createGson();
                List<DeviceData> newDeviceDataLists = gson.fromJson(list, new TypeToken<List<DeviceData>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, newDeviceDataLists);
            }
        });
    }

    /**
     * 获取绑定成员的某一项数据
     *
     * @param touserid
     * @param deviceType
     * @param dataType
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    public void requestGetFamilyMemberItemData(String touserid, String deviceType,
                                               String dataType, String pageNo, String pageSize,
                                               final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", touserid);
        map.put("deviceType", deviceType);
        map.put("dataType", dataType);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_ACCOUNT_LATEST_ITEM_DATA), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DataDetailExtra extra = gson.fromJson(dataStr, DataDetailExtra.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    public void requestGetFamilyMemberItemData2(String touserid, String deviceType,
                                                String dataType, String pageNo, String pageSize,
                                                final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", touserid);
        map.put("deviceType", deviceType);
        /*map.put("dataType", dataType);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);*/
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_ACCOUNT_LATEST_ITEM_DATA), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 评分接口
     *
     * @param mainid
     * @param score
     * @param httpFlag
     */
    public void requestGrade(String mainid, String score, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("mainid", mainid);
        map.put("score", score);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GRADE), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }


    /**
     * 请求养生内容
     *
     * @param keywords
     * @param page_size
     * @param page
     */
    public void requestRegimenContent(String channel, String keywords,
                                      String page_size, String page, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("channel", channel);
        map.put("keywords", keywords);
        map.put("page_size", page_size);
        map.put("page", page);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.REGIMEN_CONTENT), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                RegimenContentExtra extra = gson.fromJson(dataStr, RegimenContentExtra.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    /**
     * 获取健康数据
     *
     * @param httpFlag
     */
    public void requestHomeHealthInfo(final String httpFlag) {

        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.HOME_HEALTH_INFO), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthyIndext healthyIndext = gson.fromJson(dataStr,
                                HealthyIndext.class);
                        actionHandle.handleActionSuccess(httpFlag,
                                healthyIndext);
                    }
                });
    }

    /**
     * 获取天人合一，宜忌数据
     *
     * @param httpFlag
     */
    public void requestRecommendInfo(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HOME_RECOMMEND_INFO), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                HomeRecommendInfo recommendInfo = gson.fromJson(dataStr, HomeRecommendInfo.class);
                actionHandle.handleActionSuccess(httpFlag, recommendInfo);
            }
        });
    }

    /**
     * 请求分类
     *
     * @param parentid
     * @param categoryid
     * @param httpFlag
     */
    public void requestCategoryList(String parentid, String categoryid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        if (!TextUtils.isEmpty(parentid)) {
            map.put("parentid", parentid);
        }
        if (!TextUtils.isEmpty(categoryid)) {
            map.put("categoryid", categoryid);
        }
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CATEGORY_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String listStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<DetectionProject> projects = gson.fromJson(listStr, new TypeToken<List<DetectionProject>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, projects);
            }
        });

    }

    /**
     * 获得日期类内容
     *
     * @param httpFlag
     */
    public void Get_Date(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.Date_INFO), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DateVo datevo = gson.fromJson(dataStr, DateVo.class);
                actionHandle.handleActionSuccess(httpFlag, datevo);
            }
        });
    }

    /**
     * 中医检测——问题提交
     *
     * @param data
     * @param username
     * @param phone
     * @param historysick
     * @param httpFlag
     */
    public void requestCommitDetail(String data, String username,
                                    String phone, String historysick, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("data", data);
        map.put("username", username);
        map.put("phone", phone);
        map.put("historysick", historysick);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.COMMIT_DETECTION_ANSWER_DETAIL), new DataParse() {
            @Override
            public void onParse(String result) {
                //{"code":"0","data":{"major_id":429},"msg":"查询成功！","success":true}
                String dataStr = JsonUtils.getFiledData(result, "data");
                try {
                    JSONObject jsonObject = new JSONObject(dataStr);
                    int majorid = jsonObject.getInt("major_id");
                    actionHandle.handleActionSuccess(httpFlag, majorid);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * 风险评估——问题提交
     *
     * @param answer
     * @param username
     * @param phone
     * @param historysick
     * @param httpFlag
     */
    public void requestCommitPingGuDetail(String answer, String username,
                                          String phone, String historysick, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("answer", answer);
        map.put("username", username);
        map.put("phone", phone);
        map.put("historysick", historysick);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.COMMIT_RISK_EVALUATION_ANSWER_DETAIL), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<Praise> praises = gson.fromJson(list, new TypeToken<List<Praise>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, praises);
            }
        });
    }

    /**
     * 中医体检——支付
     *
     * @param password
     * @param majorid
     * @param httpFlag
     */
    public void requestPay(String password, String majorid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("password", password);
        map.put("majorid", majorid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.PAY), new DataParse() {
            @Override
            public void onParse(String result) {
                //{"code":"0","data":{"major_id":429},"msg":"查询成功！","success":true}
                String dataStr = JsonUtils.getFiledData(result, "data");
                try {
                    JSONObject jsonObject = new JSONObject(dataStr);
                    String hospitalid = jsonObject.getString("hospitalid");
                    actionHandle.handleActionSuccess(httpFlag, hospitalid);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * 根据hospitalId获取本支付卡所在医院的医生列表
     *
     * @param hospitalid
     * @param httpFlag
     */
    public void requestQueryDoctor(String hospitalid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("hospitalid", hospitalid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.QUERY_DOCTOR), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String dataList = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<MyDoctor> doctors = gson.fromJson(dataList, new TypeToken<List<MyDoctor>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, doctors);
            }
        });

    }

    /**
     * 更新中医检测订单附加的医生
     *
     * @param major_id 订单id
     * @param doctorid 医生id
     * @param httpFlag
     */
    public void requestUpdateMajorevaDoctor(String major_id, String doctorid,
                                            final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("major_id", major_id);
        map.put("doctorid", doctorid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_MAJOR), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, null);
            }
        });

    }

    /**
     * 获取中医检测记录
     *
     * @param pageNo
     * @param pageSize
     * @param type
     * @param httpFlag
     */
    public void requestDetectionHistory(String pageNo, String pageSize, String type, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("type", type);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DETECTION_HISTORY), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<DetectionHistory> histories = gson.fromJson(list, new TypeToken<List<DetectionHistory>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, histories);
            }
        });
    }

    public void requestDelDetectionHistory(String major_id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("major_id", major_id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DEL_DETECTION_HISTORY), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, null);
            }
        });
    }

    public void requestDetectionResult(String majorid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("major_id", majorid);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DETECTION_DETAIL), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DetectionResultExtra extra = gson.fromJson(dataStr, DetectionResultExtra.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    //删除  收藏
    public void requestDeleteCollection(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("ids", id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DELETE_COLLECTION), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, null);
            }
        });
    }

    //删除 医嘱
    public void requestDeleteDocAdvice(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("version", Apis.VERSION);
        map.put("autoid", id);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DELETE_DOCADVICE), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, null);
            }
        });
    }

    /**
     * 风险评估问答题
     *
     * @param httpFlag
     */
    public void requestRiskEvaluation(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_PING_GU_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<AppraisalQuestion> questions = gson.fromJson(dataStr, new TypeToken<List<AppraisalQuestion>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, questions);
            }
        });
    }

    /**
     * 健康追踪问卷
     *
     * @param httpFlag
     */
    public void requesthealthQuestion(String leave, String json, String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("id", id);
        map.put("answer", json);
        map.put("remarks", leave);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HEALTH_QUESTION), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 判断是否收藏
     *
     * @param httpFlag
     */
    public void requestCollection(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("docid", id);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.IFCOLLECTION), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //检查imei号是否支持修改老人机数据
    public void requestCheckImei(String imei, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("imei", imei);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CHECK_IMEI), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //修改老人机名称
    public void requestUpdateName(String touserid, String name, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();

        map.put("touserid", touserid);
        map.put("nick", name);// new String(name.getBytes("utf-8"),"iso-8859-1"
        map.put("cellphone", "");

        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_NAME), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //修改老人机号码
    public void requestUpdatePhone(String touserid, String phone, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("touserid", touserid);
        map.put("cellphone", phone);
        map.put("nick", "");
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_NAME), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //获取日志设置
    public void requestCheckMsg(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CHECK_MESSAGE), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                CheckMessage extra = gson.fromJson(dataStr, CheckMessage.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    //声音设置
    public void requestSettingMsg(String sound, String shake, String yongyao, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("sound", sound);
        map.put("safety", shake);
        map.put("medic", yongyao);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.SETTINGMSG), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "success");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //检查版本 更新升级
    public void CheckVersionNum(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("v", AppUtil.getVersion(MyApplication.getInstance()) + "");
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_VERSION), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                UpdateVo extra = gson.fromJson(dataStr, UpdateVo.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    //获取老人机快捷键
    public void requestOldCall(String imei, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("imei", imei);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CHECK_OLDCALL), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //修改老人机快捷键
    public void requestOldUpdatePhone(String imei, String data, String quick, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("imei", imei);
        map.put("data", data);
        map.put("type", quick);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_OLDCALL), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "success");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    //手机轨迹
    public void Get_Old_Map(String imei, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("imei", imei);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.OLD_MAP), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    public void requestGetDeviceUser(String boxno, String password,
                                     final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("boxno", boxno);
        map.put("password", password);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_DEVICE_SUERS), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<UserInDevice> users = gson.fromJson(dataStr, new TypeToken<List<UserInDevice>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, users);
            }
        });

    }

    /**
     * 绑定健管机上各用户
     *
     * @param userno
     * @param httpFlag
     */
    public void requestBindBox(String userno, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("touserid", userno);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.BIND_FAMILY_USER), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    public void requestModifyAccount(String phone, String password, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("telphone", phone);
        map.put("password", password);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.CHANGE_ACCOUNT), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    public void requestDeleteHistory(String type, String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("deviceType", type);
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DELETE_HISTORY), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, "");
            }
        });
    }

    //个人中心  健康助手  请求列表
    public void requestHealthHelperList(String keywords, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("keywords", "");
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HEALTH_HELPER), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<DoctorVo> healthVos = gson.fromJson(list,
                        new TypeToken<List<DoctorVo>>() {
                        }.getType());
                actionHandle.handleActionSuccess(httpFlag, healthVos);
            }
        });
    }

    //个人中心  健康助手  删除
    public void requestDeleteHealthHelperList(String doctorid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DELETE_HEALTH_HELPER), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, result);
            }
        });
    }

    //个人中心  健康方案  请求列表
    public void requestHealthSchemeUserList(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HEALTH_SCHEME), new DataParse() {
            @Override
            public void onParse(String result) {

                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<SchemeVo> schemeVos = gson.fromJson(list,
                        new TypeToken<List<SchemeVo>>() {
                        }.getType());

                actionHandle.handleActionSuccess(httpFlag, schemeVos);
            }
        });
    }

    //根据id获取方案
    public void requestIdHealthSchemeUserList(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_SCHEME_DETALS), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                SchemeVo schemeVos = gson.fromJson(dataStr, new TypeToken<SchemeVo>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, schemeVos);
            }
        });
    }

    //健康方案 未完成 请求列表
    public void requestWWCHealthSchemeUserList(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.N_HEALTH_SCHEME), new DataParse() {
            @Override
            public void onParse(String result) {

                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<SchemeVo> schemeVos = gson.fromJson(dataStr,
                        new TypeToken<List<SchemeVo>>() {
                        }.getType());
                actionHandle.handleActionSuccess(httpFlag, schemeVos);
            }
        });
    }

    //健康方案 系统   请求列表
    public void requestXXHealthSchemeUserList(String page, String pagesize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.XX_HEALTH_SCHEME), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<SchemeAddVo> schemeVos = gson.fromJson(list,
                        new TypeToken<List<SchemeAddVo>>() {
                        }.getType());

                actionHandle.handleActionSuccess(httpFlag, schemeVos);
            }
        });
    }

    //关注的医生列表 &&  私人医生列表  type不一致
    public void requestMyDoctorList(String type, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("type", type);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DOCTOR_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<DoctorVo> myDoctor = gson.fromJson(list, new TypeToken<List<DoctorVo>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, myDoctor);
            }
        });
    }

    //查找医生
    public void requestSearchDoctor2(String keywords, String type, String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("type", type);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("keywords", keywords);
        Map<String, String> mapHeader = getMapHeader();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<DoctorVo> myDoctor = gson.fromJson(dataStr1, new TypeToken<List<DoctorVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    /**
     * 请求体脂历史数据
     *
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    public void requestBodyFatHistoryData(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.BODY_FAT_HISTORY_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
//                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        BodyFatHistoryBean extra = gson.fromJson(result, BodyFatHistoryBean.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 请求尿检历史记录
     *
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    public void requestUrineTestHistoryData(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.URINE_TEST_HISTORY_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
//                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        UrineTestHistoryBean extra = gson.fromJson(result, UrineTestHistoryBean.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    public void requestBloodHistoryData(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();

        Map<String, String> mapreq = new HashMap<String, String>();

        mapreq.put("pageNo", pageNo);
        mapreq.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.BLOOD_PRESSURE_HISTORY_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        Gson gson = new MyGsonBuilder().createGson();
                        BloodPressureHistoryBean extra = gson.fromJson(result, BloodPressureHistoryBean.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    public void requestHealthScheme(String ids, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("schemeid", ids);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HEALTH_SCHEME_XX), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<HealthSchemeVo> extra = gson.fromJson(dataStr, new TypeToken<List<HealthSchemeVo>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    //系统健康计划列表
    public void requestHealthSchemeSystem(String ids, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("schemeid", ids);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HEALTH_SCHEME_SYSTEM), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<SystemSchemeVo> extra = gson.fromJson(dataStr, new TypeToken<List<SystemSchemeVo>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    //积分任务列表
    public void requestIntergration(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        Map<String, String> mapHeader = getMapHeader();
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.INTERGRATION_RWB), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<IntegrationVo> healthNewsBean = gson.fromJson(dataStr, new TypeToken<List<IntegrationVo>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, healthNewsBean);
            }
        });
    }

    public void requestProjectList(final String httpFlag) {
        Map<String, String> map = getMapHeader();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_DEPARTMEN_TLIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<Project> projects = gson.fromJson(list, new TypeToken<List<Project>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, projects);
            }
        });
    }

    public void requestFastInquiry(String content, String userDesc, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> mapreq = new HashMap<>();
        mapreq.put("content", content);
        mapreq.put("userdesc", userDesc);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, mapreq, mapHeader,
                Apis.getCommonUrl(Act.FAST_INQUIRY), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        FastVo fastVo = gson.fromJson(data, FastVo.class);
                        actionHandle.handleActionSuccess(httpFlag, fastVo);
                    }
                });
    }

    //健康方案 评论列表
    public void requestCommentList(String id, String page, String pagesize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        map.put("pageNo", page);
        map.put("pageSize", pagesize);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_COMMET_TLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<CommentVo> projects = gson.fromJson(list, new TypeToken<List<CommentVo>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, projects);
                    }
                });
    }

    //健康方案 今日完成按钮
    public void requestUpdateHealthPlanUser(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("planid", id);

        HttpRequestProvider client = new HttpRequestProvider(
                actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.HEALTH_PLAN_USER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    public void requestAds(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_ADS1), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<BannerBean> beans = gson.fromJson(dataStr, new TypeToken<List<BannerBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, beans);
                    }
                });
    }

    public void requestAds(String province,String city,String district,final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("provincename",province);
        map.put("cityname",city);
        map.put("districtname",district);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_ADS1), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<BannerBean> beans = gson.fromJson(dataStr, new TypeToken<List<BannerBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, beans);
                    }
                });
    }

    public void requestPlan(String hpuid,final String httpFlag) {//首页 测量计划
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("hpuid",hpuid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_PLAN), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(httpFlag, dataStr);
                    }
                });
    }
    public void requestHomeState(final String httpFlag) {//首页 获取状态
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_STATE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthManagerStatus healthManagerStatus = gson.fromJson(dataStr, HealthManagerStatus.class);
                        actionHandle.handleActionSuccess(httpFlag, healthManagerStatus);
                    }
                });
    }

    public void requestHealthNews(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_NEWS), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthNewsBean healthNewsBean = gson.fromJson(dataStr, HealthNewsBean.class);
                        actionHandle.handleActionSuccess(httpFlag, healthNewsBean);
                    }
                });
    }

    public void requestHealthState(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_HEALTH_STATE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthStateBean healthStateBean = gson.fromJson(dataStr, HealthStateBean.class);
                        actionHandle.handleActionSuccess(httpFlag, healthStateBean);
                    }
                });
    }

    //健康方案 重新添加方案按钮
    public void requestAddHealthScheme(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.ADD_HEALTH_SCHEME), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    //健康方案 回复接口
    public void requestSchemeComment(String schemetempletid, String value, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("content", value);
        map.put("schemetempletid", schemetempletid);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.HEALTH_SCHEME_COMMENT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    //健康方案 详情计划
    public void requestHealthPlanUserById(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.HEALTH_PLAN_USER_BYID), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthSchemeVo extra = gson.fromJson(dataStr, new TypeToken<HealthSchemeVo>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    // 系统 健康方案 详情计划
    public void requestHealthPlanUserById2(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.HEALTH_PLAN_USER_BYID2), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        SystemHealthVo extra = gson.fromJson(dataStr, new TypeToken<SystemHealthVo>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }


    /**
     * 请求血糖数据新接口
     *
     * @param pageNo   页码
     * @param pageSize 条目数
     * @param httpFlag 请求标记
     */
    public void requestBloodSugarDataNew(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.BLOOD_SUGAR_DATA), new DataParse() {
                    @Override
                    public void onParse(String result) {
//                        String dataStr = JsonUtils.getFiledData(result,"data");
                        Gson gson = new MyGsonBuilder().createGson();
                        BloodSugarDataBean extra = gson.fromJson(result, BloodSugarDataBean.class);
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    public void requestHealthStateDetail(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_HEALTH_STATE_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        HealthStateInfo healthStateInfo = gson.fromJson(dataStr, HealthStateInfo.class);
                        actionHandle.handleActionSuccess(httpFlag, healthStateInfo);
                    }
                });
    }

    public void requestHealthPlan(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_HEALTH_PLAN), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SchemeBean> extra = gson.fromJson(dataStr, new TypeToken<List<SchemeBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    public void requestSystemMsgDetail(int pageNo, int pageSize, String type, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();

        map.put("pageNo", String.valueOf(pageNo));
        map.put("pageSize", String.valueOf(pageSize));
        map.put("type", type);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_SYSTEM_MSG_DETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SystemMsgDetail> extra = gson.fromJson(list, new TypeToken<List<SystemMsgDetail>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, extra);
                    }
                });
    }

    /**
     * 提交评价
     */
    public void commitDoctorEvaluation(String doctorid, String score, String message, String label) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        map.put("message", message);
        map.put("score", score);
        map.put("label", label);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.APPRAISE_DOCTOR);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_EVALUATION), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(Act.Flag.APPRAISE_DOCTOR, result);
                    }
                });
    }

    /**
     * 问题历史记录
     */
    public void tiwenHistoryList(String keywords, String pageNo, String pageSize, String status, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("keywords", keywords);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("status", status);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.TIWEN_QUESION), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<TwQuestion> aaa = gson.fromJson(list, new TypeToken<List<TwQuestion>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, aaa);
            }
        });
    }

    /**
     * 获取私人医生列表
     */
    public void requestGetDoctor(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_PERSONAL_DOCTOR), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<PersonalDocModel> aaa = gson.fromJson(list, new TypeToken<List<PersonalDocModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, aaa);
            }
        });
    }

    /**
     * 扫一扫 获取私人医生列表
     */
    public void requestGetScannerDoctor(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.SCANNER_GETMYPERSDIONNALCOD), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<PersonalDocModel> aaa = gson.fromJson(list, new TypeToken<List<PersonalDocModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, aaa);
            }
        });
    }

    /**
     * 扫一扫 获取私人医生列表
     * devicecode	设备编码	string
     * doctorid	绑定医生doctorid	string
     * privatedoctorid
     */
    public void requestChangedDoctor(String devicecode, String doctorid, String privatedoctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("devicecode", devicecode);
        map.put("doctorid", doctorid);
        map.put("privatedoctorid", privatedoctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.SCANNER_CHANGEDDOC), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<PersonalDocModel> aaa = gson.fromJson(list, new TypeToken<List<PersonalDocModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, aaa);
            }
        });
    }

    /**
     * 获取健康银行
     */
    public void requestHealthBank(String pageNo, String pageSize, String banktype, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("banktype", banktype);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_HEA_BANK), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<HealthBankVo> aaa = gson.fromJson(list, new TypeToken<List<HealthBankVo>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, aaa);
            }
        });
    }

    /**
     * 关注健康银行
     */
    public void addAttentionBank(String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.ADD_ATTENTION_BANK), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 取消关注健康银行
     */
    public void delAttentionBank(String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DEL_ATTENTION_BANK), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 获取健康银行详情
     */
    public void getAttentionBankByDoctorid(String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_ATTENTION_BANK_BY_DOCTORID), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                HealthBankDetailBean bean = gson.fromJson(dataStr, HealthBankDetailBean.class);
                actionHandle.handleActionSuccess(httpFlag, bean);
            }
        });
    }

    /**
     * 获取健康银行下医生列表
     */
    public void getAttentionBankDoctorList(String pageNo, String pageSize, String doctorid, String department,final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("doctorid", doctorid);
        map.put("department", department);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GETATTENTIONBANKDOCTORLIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<DoctorDetailBean> listBean = gson.fromJson(list, new TypeToken<List<DoctorDetailBean>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, listBean);
            }
        });
    }

    /**
     * 获取私人60天咨询
     */
    public void getrequestGetDoctor(String doctorid, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_DOCTOR), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, result);
            }
        });
    }

    /**
     * 问题历史记录  删除
     */
    public void DeleteHistoryList(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.DELETE_QUESION_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 问题历史记录  重新提问
     */
    public void RestartHistoryList(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.RESTART_QUESION), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 上传血痒记录
     */
    public void upLoadBloodOxygen(String ptype, String oxygen, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("ptype", ptype);
        map.put("oxygen", oxygen);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.OXYGEN_UPLOAD), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, dataStr);
            }
        });
    }

    /**
     * 获得血痒记录
     */
    public void getOxygenHistory(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        ;
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.OXYGEN_HISTORY), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(dataStr, "list");
                Gson gson = new MyGsonBuilder().createGson();
                JSONObject obj = null;
                try {
                    obj = new JSONObject(dataStr);
                    JSONArray jsonArray = obj.optJSONArray("deviceData");
                    if (jsonArray == null || jsonArray.length() == 0) {
                        return;
                    }
                    BloodoHistoryOygenBean healthStateInfo = gson.fromJson(dataStr, BloodoHistoryOygenBean.class);
                    actionHandle.handleActionSuccess(httpFlag, healthStateInfo);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * 删除历史血痒记录
     */
    public void delOxygenHistoryById(String deviceType, String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("deviceType", deviceType);
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.OXYGEN_delDAVICE), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(httpFlag, data);
            }
        });
    }

    /**
     * 添加汗液数据
     *
     * @param ptype 设备类型 1 手动 2 恩福产品
     */
    public void AddSweatData(String ptype, List<String> dataList, final String httpFlag) {
        //datalist按照测量时间分类
        LinkedHashMap<String, ArrayList<String>> hashMap = new LinkedHashMap();
        String date = "";
        ArrayList<String> list;
        for (int i = 0; i < dataList.size(); i++) {
            String data = dataList.get(i);
            if (data.startsWith(" ") && data.charAt(1) == '<') {
                data = data.substring(1, data.length());
            }
            date = data.substring(1, 11);
            if (hashMap.containsKey(date)) {
                list = hashMap.get(date);
            } else {
                list = new ArrayList<>();
            }
            list.add(data);
            hashMap.put(date, list);
        }

        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("ptype", ptype);
        //避免<>等字符转义成乱码
        Gson gson = new GsonBuilder()
                .setPrettyPrinting()
                .disableHtmlEscaping()
                .create();
        String datas = gson.toJson(hashMap).replace("\n", "");//替换出现的出现\n
        map.put("datas", datas);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.ADD_SWEAT_NIN_ENEW), new DataParse() {
            @Override
            public void onParse(String result) {
                String msg = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(httpFlag, msg);
            }
        });
    }

    /**
     * 添加汗液数据
     *
     * @param ptype 设备类型 1 手动 2 恩福产品
     */
    public void AddSweatDataNew(String ptype, String datas) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("ptype", ptype);
        map.put("datas", datas);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_ADD_SWEAT);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.ADD_SWEAT), new DataParse() {
            @Override
            public void onParse(String result) {
                String msg = JsonUtils.getFiledData(result, "msg");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_ADD_SWEAT, msg);
            }
        });
    }


    /**
     * 请求时间列表
     *
     * @param deviceType sweat汗液 bloodsugar血糖 bracelet手环 blood血压 balance体质称 urine尿检
     * @param httpFlag
     */
    public void requestDateList(String deviceType, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("deviceType", deviceType);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.REQUEST_DATE_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DateListBean bean = gson.fromJson(data, DateListBean.class);
                actionHandle.handleActionSuccess(httpFlag, bean);
            }
        });
    }

    /**
     * 根据时间请求汗液数据
     *
     * @param date     例如：2016-01-01
     * @param httpFlag
     */
    public void requestSweatDataByDate(String date, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("date", date);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.REQUEST_DATA_BY_DATE), new DataParse() {
            @Override
            public void onParse(String result) {
                String strData = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DataDetailExtra extra = gson.fromJson(strData, DataDetailExtra.class);
                actionHandle.handleActionSuccess(httpFlag, extra);
            }
        });
    }

    /**
     * 汗液历史接口
     *
     * @param pageNo
     * @param pageSize
     * @param httpFlag
     */
    public void requestSweatData(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);

        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.REQUEST_DATA_BY_DATE), new DataParse() {
            @Override
            public void onParse(String result) {
                String strData = JsonUtils.getFiledData(result, "data");
                //Gson gson = new MyGsonBuilder().createGson();
                //DataDetailExtra extra = gson.fromJson(strData, DataDetailExtra.class);
                actionHandle.handleActionSuccess(httpFlag, strData);
            }
        });
    }

    /**
     * 检查弹窗
     *
     * @param httpFlag
     */
    public void getTopImages(final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.REQUEST_GETTOPIMAGES), new DataParse() {
            @Override
            public void onParse(String result) {
                String strData = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, strData);
            }
        });
    }

    public void getTopImages(String province,String city,String district,final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("provincename",province);
        map.put("cityname",city);
        map.put("districtname",district);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.REQUEST_GETTOPIMAGES), new DataParse() {
            @Override
            public void onParse(String result) {
                String strData = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, strData);
            }
        });
    }

    /**
     * 添加手环睡眠数据
     *
     * @param httpFlag
     */
    public void addbraceletSleepData(String bracelet, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("bracelet", bracelet);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.BRACELECT_ADDSLEETDATA), new DataParse() {
            @Override
            public void onParse(String result) {
              /*  String strData = JsonUtils.getFiledData(result, "data");*/
                actionHandle.handleActionSuccess(httpFlag, result);
            }
        });
    }

    /**
     * 添加手环运动数据
     *
     * @param httpFlag
     */
    public void addbraceletSportData(String bracelet, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("bracelet", bracelet);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.BRACELECT_ADDSPORTDATA), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(httpFlag, result);
            }
        });
    }

    /**
     * 请求问诊列表
     *
     * @param pageNo
     * @param pageSize
     * @param state    0 未完成, 1 已完成
     */
    public void getInquiryList(String pageNo, String pageSize, String state, String keywords, final String httpFlag) {
        Map<String, String> map = getMapHeader();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("state", state);
        map.put("keywords", keywords);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.GET_INQUIRY_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回问诊bean类集合
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<InquiryBean> listBean = gson.fromJson(list, new TypeToken<List<InquiryBean>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, listBean);
            }
        });
    }

    /**
     * 根据id删除问诊
     *
     * @param inquiryid
     * @param httpFlag
     */
    public void deleteInquiryById(String inquiryid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("inquiryid", inquiryid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.DELETE_INQUIRY_BY_ID), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回问诊bean类集合
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, data);
            }
        });
    }

    /**
     * 根据id获得问诊详情
     *
     * @param inquiryid
     * @param httpFlag
     */
    public void getInquiryById(String inquiryid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("inquiryid", inquiryid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.GET_INQUIRY_BY_ID), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                InquiryDetailBean bean = gson.fromJson(data, InquiryDetailBean.class);
                actionHandle.handleActionSuccess(httpFlag, bean);
            }
        });
    }

    /**
     * 修改已读状态
     *
     * @param doctorid
     * @param inquiryid
     * @param readtype
     * @param httpFlag
     */
    public void updateReadtype(String doctorid, String inquiryid, String readtype, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        map.put("inquiryid", inquiryid);
        map.put("readtype", readtype);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.UPDATE_READ_TYPE), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, data);
            }
        });
    }


    /**
     * 问诊用户追问
     *
     * @param content   问诊内容
     * @param doctorid
     * @param inquiryid 问诊id
     * @param httpFlag
     */
    public void userReplyInquiry(String content, String doctorid, String inquiryid, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("content", content);
        map.put("doctorid", doctorid);
        map.put("inquiryid", inquiryid);
        map.put("version", "2.6");
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.USER_REPLY_INQUIRY), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(httpFlag, data);
            }
        });
    }

    /**
     * 评论医生
     *
     * @param doctorid
     * @param inquiryid
     * @param label     ["回复清楚","态度很好",""]
     * @param message
     * @param score
     * @param httpFlag
     */
    public void commitDoctorEvaluation(String doctorid, String inquiryid, String label, String message, String score, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        map.put("inquiryid", inquiryid);
        map.put("label", label);
        map.put("message", message);
        map.put("score", score);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.COMMENT_INQUIRY_DOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(httpFlag, result);
                    }
                });
    }

    /**
     * 评论医生
     *
     * @param doctorid
     * @param label    ["回复清楚","态度很好",""]
     * @param message
     * @param score
     */
    public void appraiseServiceDoctor(String doctorid, String isend, String label, String message, String score, String serviceid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        map.put("isend", isend);
        map.put("label", label);
        map.put("message", message);
        map.put("score", score);
        map.put("serviceid", serviceid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.APPRAISE_SERVICE_DOCTOR);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.APPRAISE_SERVICE_DOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(Act.Flag.APPRAISE_SERVICE_DOCTOR, result);
                    }
                });
    }

    /**
     * 医生主界面的搜索
     * 搜索 医生科室，医院名
     * <p>
     * area	地区	string
     * department	科室	string
     * hospitalid	医院ID	string
     * keywords	姓名/医院名称	string
     * pageNo	查询页数	string
     * pageSize	查询条数	string
     * servername	服务名称
     */
    public void queryDoctorBySomeWay1(String keywords, String pageNo, String pageSize, String hid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("area", "");
        map.put("department", "");
        map.put("hospitalid", "");
        map.put("keywords", keywords);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("servername", "");
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.SEARCH_DOCTOR_KESHI_HOSTIPAL_FLG);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.SEARCH_DOCTOR_KESHI_HOSTIPAL), new DataParse() {
                    @Override
                    public void onParse(String result) {

                        actionHandle.handleActionSuccess(Act.Flag.SEARCH_DOCTOR_KESHI_HOSTIPAL_FLG, result);
                    }
                });
    }

    /**
     * 医生主界面的搜索
     * 搜索 医生科室，医院名
     * <p>
     * area	地区	string
     * department	科室	string
     * hospitalid	医院ID	string
     * keywords	姓名/医院名称	string
     * pageNo	查询页数	string
     * pageSize	查询条数	string
     * servername	服务名称
     */
    public void queryDoctorBySomeWay(String area, String department, String hospitalid, String keywords, String pageNo, String pageSize, String servername) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("area", area);
        map.put("department", department);
        map.put("hospitalid", hospitalid);
        map.put("keywords", keywords);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("servername", servername);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.SEARCH_DOCTOR_KESHI_HOSTIPAL_FLG);
        client.request(Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.SEARCH_DOCTOR_KESHI_HOSTIPAL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        //返回问诊bean类集合
                        String data = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(data, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<SearchMainDocBean> listSearchMainBean = gson.fromJson(list, new TypeToken<List<SearchMainDocBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(Act.Flag.SEARCH_DOCTOR_KESHI_HOSTIPAL_FLG, listSearchMainBean);
                    }
                });
    }

    /**
     * 查看问诊红点标志位
     */
    public void getInquiryMark(final String httpFlag) {
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.GET_INQUIRY_MARK), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(httpFlag, data);
                    }
                });
    }

    /**
     * 获取医生服务下拉框
     */
    public void getDoctorServiceList() {
        Map<String, String> map =getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_DOCTORSERVICE_LIST_FLG);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.GET_DOCTORSERVICE_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.GET_DOCTORSERVICE_LIST_FLG, data);
                    }
                });
    }

    /**
     * 关注医生
     */
    public void addAttention(String doctorid) {
        Map<String, String> map = getMapHeader();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.ATTATION_DOCTOR_FLG);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.ATTATION_DOCTOR), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.ATTATION_DOCTOR_FLG, data);
                    }
                });
    }

    /**
     * 获取健康银行下医生列表
     * doctorid	健康银行医生id	number
     * pageNo		number
     * pageSize
     */
    public void etAttentionBankDoctorList(String doctorid,String department, String pageNo, String pageSize) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("department", department);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETATTENTIONBANKDOCTORLIST_FLG);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.GETATTENTIONBANKDOCTORLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        //返回问诊bean类集合
                        actionHandle.handleActionSuccess(Act.Flag.GETATTENTIONBANKDOCTORLIST_FLG, result);
                    }
                });
    }

    /**
     * 获取健康币历史
     */
    public void getUserHealthMoenyList(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.GET_USERHEALTH_MOENY_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        Gson gson = new Gson();
                        HealthMoneyHistoryBean healthMoneyHistoryBean = gson.fromJson(data, HealthMoneyHistoryBean.class);
                        actionHandle.handleActionSuccess(httpFlag, healthMoneyHistoryBean);
                    }
                });
    }
    /**
     * 获取健康币的个数
     */
    public void getUserHealthMoenyNUm() {
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_USERHEALTH_MOENY_COUNT);
        client.request(Method.POST, map, null,
                Apis.getCommonUrl(Act.GET_USERHEALTH_MOENY_COUNT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                       String healthMoeny = JsonUtils.getFiledData(data, "healthMoeny");
                        actionHandle.handleActionSuccess( Act.Flag.FLAG_GET_USERHEALTH_MOENY_COUNT, healthMoeny);
                    }
                });
    }
    /**
     * 获取积分/健康币
     */
    public void getUserScore(final String httpFlag) {
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.GET_USER_SCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(httpFlag, data);
                    }
                });
    }

    /**
     * 获取医生服务设置
     */
    public void getDoctorServiceSetting(String doctorid) {
        Map<String, String> map = getMapHeader();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETDOCTORSERVICESETTING_FLG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.GETDOCTORSERVICESETTING), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.GETDOCTORSERVICESETTING_FLG, data);
                    }
                });
    }

    /**
     * 获取医生服务设置的医生主页的基本详情
     * 1家庭服务  2付费咨询 3健康管理
     */
    public void getDoctorServiceDetai(String doctorid, String type) {
        Map<String, String> map = getMapHeader();
        map.put("type", type);
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETDOCTORSERVICESETTINGDETAIL_FLAG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.GETDOCTORSERVICESETTINGDETAIL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.GETDOCTORSERVICESETTINGDETAIL_FLAG, data);
                    }
                });
    }

    /**
     * 获取积分/健康币
     */
    public void getDoctorScore() {
        Map<String, String> map = new HashMap<String, String>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETDOCGETUSERSCORE_FLG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.GETDOCGETUSERSCORE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.GETDOCGETUSERSCORE_FLG, data);
                    }
                });
    }

    /**
     * 支付宝支付
     * 购买服务等接口
     *
     * @healthycoin 健康币
     */
    public void payAliyunment(String doctorid, String price, String buytype, String type, String healthycoin) {
        Map<String, String> map = getMapHeader();
        map.put("price", price);
        map.put("doctorid", doctorid);
        map.put("buytype", buytype);
        map.put("type", type);
        map.put("healthycoin", healthycoin);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.PAYMENTALIPAYAPI_FLAG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.PAYMENTALIPAYAPI), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.PAYMENTALIPAYAPI_FLAG, data);
                    }
                });
    }

    /**
     * 创建服务订单
     */
    public void createServiceOrder(String doctorid, String price, String buytype, String type, String healthycoin) {
        Map<String, String> map = getMapHeader();
        map.put("price", price);
        map.put("doctorid", doctorid);
        map.put("type", type);
        map.put("buytype", buytype);
        map.put("healthycoin", healthycoin);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.CREATESERVICEORDER_FLAG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.CREATE_MINDORDER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                         /*String orderno = JsonUtils.getFiledData(data, "orderno");*/
                        actionHandle.handleActionSuccess(Act.Flag.CREATESERVICEORDER_FLAG, data);
                    }
                });
    }

    /**
     * 创建送心意订单
     *
     * @param doctorid
     * @param price
     */
    public void createMindOrder(String doctorid, String price) {
        Map<String, String> map = getMapHeader();
        map.put("price", price);
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.CREATE_MIND_ORDER_FLAG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.CREATE_MIND_ORDER), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        String orderno = JsonUtils.getFiledData(data, "orderno");
                        actionHandle.handleActionSuccess(Act.Flag.CREATE_MIND_ORDER_FLAG, orderno);
                    }
                });
    }

    /**
     * 药店支付宝支付 接口
     *
     * @param
     */
    public void createMindAlipayOrder(String orderno) {
        Map<String, String> map = getMapHeader();
        map.put("orderno",orderno);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.CREATE_MIND_ALIPAY_ORDER_FLAG);
        client.request(Method.GET, map, null,  Apis.getCommonUrl(Act.ALIPAY_SIGN),new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String signString = JsonUtils.getFiledData(data, "signString");
                actionHandle.handleActionSuccess(Act.Flag.CREATE_MIND_ALIPAY_ORDER_FLAG, signString);
            }
        });
    }

    /**
     * 微信支付验签接口
     *
     * @param price
     */
    public void payWeiXinOrder(String orderno) {
        Map<String, String> map = getMapHeader();
        map.put("orderno",orderno);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_PAY_WEIXIN_PAT_ORSER);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.PAY_WEIXIN_PAT_ORSER), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new Gson();
                OrederSendInfo orederSendInfo = gson.fromJson(data, OrederSendInfo.class);
                actionHandle.handleActionSuccess(Act.Flag.FLAG_PAY_WEIXIN_PAT_ORSER, orederSendInfo);
            }
        });
    }

    /**
     * 银联支付验签接口
     *
     * @param price
     */
    public void getScanResultPayOrder(String price) {
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_UNION_PAY_ORDER);
        client.request2(Method.GET, map, null, price, new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                CreateOrderBean bean = com.alibaba.fastjson.JSONObject.parseObject(data, CreateOrderBean.class);
                actionHandle.handleActionSuccess(Act.Flag.FLAG_UNION_PAY_ORDER, bean);
            }
        });
    }

    public void unionpaySign(String orderno) {
        Map<String, String> map = getMapHeader();
        map.put("orderno", orderno);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_UNIONPAY_SIGN);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.PAY_YinL_BINNK_ORSER), new DataParse() {
            @Override
            public void onParse(String result) {
                try {
                    String data = JsonUtils.getFiledData(result, "data");
                    String tn = JsonUtils.getFiledData(data, "tn");
                    actionHandle.handleActionSuccess(Act.Flag.FLAG_UNIONPAY_SIGN, tn);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    public void createPriceOrder(String price, String doctorid, String type) {
        Map<String, String> map = getMapHeader();
        map.put("price", price);
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_CREATE_PRICE_ORDER);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.CREATE_PRICE_ORDER), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String tn = JsonUtils.getFiledData(data, "tn");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_CREATE_PRICE_ORDER, tn);
            }
        });
    }

    /**
     * 支付宝验签（新）
     */
    public void createServiceOrder(String orderno) {
        Map<String, String> map = getMapHeader();
        map.put("orderno", orderno);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.ALIPAYSIGN_FLAG);
        client.request(Method.GET, map, null,
                Apis.getCommonUrl(Act.ALIPAY_SIGN), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        String signString = JsonUtils.getFiledData(data, "signString");
                        actionHandle.handleActionSuccess(Act.Flag.ALIPAYSIGN_FLAG, signString);
                    }
                });
    }

    /**
     * 获取服务状态
     *
     * @param doctorid
     */
    public void getServiceStatus(String doctorid) {
        Map<String, String> map = new HashMap<>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_SERVICE_STATUS_FLG);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.GET_SERVICE_STATUS), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                StatusBean bean = new Gson().fromJson(data, StatusBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GET_SERVICE_STATUS_FLG, bean);
            }
        });
    }

    /**
     * 获取最新运动处方id
     */
    public void getLatestSportRecipeId() {
        Map<String, String> map = new HashMap<>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_LATEST_SPORTRECIPE_ID);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.GET_LATEST_SPORTRECIPE_ID), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                String hpuid = JsonUtils.getFiledData(data, "hpuid");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_LATEST_SPORTRECIPE_ID, hpuid);
            }
        });
    }

    /**
     * 获取运动处方详情
     */
    public void getLatestSportRecipeDetail(String hpuid) {
        Map<String, String> map = new HashMap<>();
        map.put("hpuid", hpuid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_SPORTRECIPE_DETAIL);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.GET_SPORTRECIPE_DETAIL), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                SportRecipeDetailBean bean = gson.fromJson(data, SportRecipeDetailBean.class);
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_SPORTRECIPE_DETAIL, bean);
            }
        });
    }

    /**
     * 获取运动处方详情
     */
    public void recordSportTake(String interneneid, String type) {
        Map<String, String> map = new HashMap<>();
        map.put("type", type);
        map.put("interneneid", interneneid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_RECORD_SPORT_TAKE);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.RECORD_SPORT_TAKE), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_RECORD_SPORT_TAKE, data);
            }
        });
    }

    /**
     * 更新服务状态
     *
     * @param doctorid
     */
    public void updateServiceStatus(String doctorid, String serviceId) {
        Map<String, String> map = new HashMap<>();
        map.put("doctorid", doctorid);
        map.put("serviceId", serviceId);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.UPDATE_SERVICE_STATUS);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.UPDATE_SERVICE_STATUS), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                StatusBean bean = new Gson().fromJson(data, StatusBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GET_SERVICE_STATUS_FLG, bean);
            }
        });
    }

    /**
     * 送心意
     *
     * @param doctorid
     */
    public void personallyMoney(String doctorid, String healthMoeny) {
        Map<String, String> map = new HashMap<>();
        map.put("doctorid", doctorid);
        map.put("healthMoeny", healthMoeny);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.PERSONALLY_MONEY);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.PERSONALLY_MONEY), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.PERSONALLY_MONEY, data);
            }
        });
    }

    /**
     * 心电的历史记录
     *
     * @param
     */
    public void getEcgHistory(String pageNo, String pageSize, final String httpFlag) {
        Map<String, String> map = new HashMap<>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.GET, map, null, Apis.getCommonUrl(Act.PRIVEVIDER_ECG), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
                String deviceData = JsonUtils.getFiledData(data, "deviceData");
                Gson gson = new MyGsonBuilder().createGson();
                List<EcgHistory> list = gson.fromJson(deviceData, new TypeToken<List<EcgHistory>>() {
                }.getType());
                actionHandle.handleActionSuccess(httpFlag, list);
            }
        });
    }

    /**
     * 增加 心电的的数据
     *
     * @param datas   原始数据
     * @param picsurl 生成的那个图片
     *                类型 1手动输入 2恩福设备
     */
    public void addEcgHistoryData(String datas, String picsurl, String ecgResult, String ptype) {
        Map<String, String> map = new HashMap<>();
        map.put("datas", datas);
        map.put("picsurl", picsurl);
        map.put("ecgResult", ecgResult);
        map.put("ptype", ptype);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.ADD_ECG_PRIVER_DATA);
        client.request(Method.POST, map, null, Apis.getCommonUrl(Act.ADD_PRIVEVIDER_ECG), new DataParse() {
            @Override
            public void onParse(String result) throws JsonParseException {
                String data = JsonUtils.getFiledData(result, "data");
               /* String  deviceData   = JsonUtils.getFiledData(data,"deviceData");
                Gson gson = new MyGsonBuilder().createGson();
                List<EcgHistory> list = gson.fromJson(deviceData, new TypeToken<List<EcgHistory>>() {
                }.getType());*/
                actionHandle.handleActionSuccess(Act.Flag.ADD_ECG_PRIVER_DATA, data);
            }
        });
    }

    /**
     * 删除数据模块的历史数据
     * 通用的
     */
    public void delHistoryById(final String deviceType, String id, final String httpFlag) {
        Map<String, String> map = getMapHeader();
        map.put("deviceType", deviceType);
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, null, Apis.getCommonUrl(Act.DELETE_TEM), new DataParse() {
            @Override
            public void onParse(String result) {
                switch (deviceType) {
                    case Constants.TYPE_ECG://删除心电
                        String data = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, data);
                        break;
                    case Constants.TYPE_OXYGEN://删除血氧
                        String oxygen = JsonUtils.getFiledData(result, "msg");
                        actionHandle.handleActionSuccess(httpFlag, oxygen);
                        break;
                }
            }
        });
    }

    /**
     * 运动方案 详情
     */
    public void requesexercised(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.EXERCISED_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                SportSchemeVo sportSchemeVo = new Gson().fromJson(data, SportSchemeVo.class);
                actionHandle.handleActionSuccess(httpFlag, sportSchemeVo);
            }
        });
    }

    /**
     * 经络 详情
     */
    public void requesmeridian(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.MERIDIAN_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {

                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                MeridianVo meridianVo = gson.fromJson(data, MeridianVo.class);
                actionHandle.handleActionSuccess(httpFlag, meridianVo);
            }
        });
    }

    /**
     * 音乐 详情
     */
    public void requesmusic(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.MUSIC_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                MusicVo musicVo = gson.fromJson(data, MusicVo.class);
                actionHandle.handleActionSuccess(httpFlag, musicVo);
            }
        });
    }

    /**
     * 调理处方
     */
    public void requesprescription(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.PRESCRIPTION_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                PrescriptionVo prescriptionVo = gson.fromJson(data, PrescriptionVo.class);
                actionHandle.handleActionSuccess(httpFlag, prescriptionVo);
            }
        });
    }

    /**
     * 调理处方0
     */
    public void requesprmonitor(String id, final String httpFlag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.MONITOR_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                DetectionVo detectionVo = gson.fromJson(data, DetectionVo.class);
                actionHandle.handleActionSuccess(httpFlag, detectionVo);
            }
        });
    }

    /**
     * 获取健康服务包
     */
    public void getInterveneList(String pageNo, String pageSize) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_LIST);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String listData = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<InterventionBean> list = gson.fromJson(listData, new TypeToken<List<InterventionBean>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_LIST, list);
            }
        });
    }

    /**
     * 获取健康服务包封面
     */
    public void getInterveneCover(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_COVER);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_COVER), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                InterventionCoverBean bean = gson.fromJson(data, InterventionCoverBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_COVER, bean);
            }
        });
    }

    /**
     * 获取运动干预数据
     */
    public void getInterveneSportById(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETINTERVENESPORTBYID_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GETINTERVENESPORTBYID), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                MySportBean mySportBean = new Gson().fromJson(data, MySportBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GETINTERVENESPORTBYID_FLAG, mySportBean);
            }
        });
    }

    /**
     * 获取经络干预数据
     */
    public void getInterveneMeridianById(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETINTERVENEMERIDIANBYID_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GETINTERVENEMERIDIANBYID), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                MeridianBean meridianBean = new Gson().fromJson(data, MeridianBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GETINTERVENEMERIDIANBYID_FLAG, meridianBean);
            }
        });
    }

    /**
     * 获取经络音乐数据
     */
    public void getInterveneMusicById(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETINTERVENEMUSICBYID_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GETINTERVENEMUSICBYID), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                PlayMusic playMusic = new Gson().fromJson(data, PlayMusic.class);
                actionHandle.handleActionSuccess(Act.Flag.GETINTERVENEMUSICBYID_FLAG, playMusic);
            }
        });
    }

    /**
     * 获取个人健康信息汇总
     */
    public void getInterveneUserHealthyInfo(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_USER_HEALTH_INFO);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_USER_HEALTH_INFO), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_USER_HEALTH_INFO, data);
            }
        });
    }

    /**
     * 首页健康服务包
     */
    public void getInterveneIndex(String hpuid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("hpuid",hpuid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_INDEX);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_INDEX), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                List<SolutionSchemeBean> list = gson.fromJson(data, new TypeToken<List<SolutionSchemeBean>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_INDEX, list);
            }
        });
    }

    /**
     * 获取膳食方案
     */
    public void getMedicineddietById(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_MEDICINEDDIET_BY_ID);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_MEDICINEDDIET_BY_ID), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                MedicinedDietBean bean = gson.fromJson(data, MedicinedDietBean.class);
                actionHandle.handleActionSuccess(Act.Flag.GET_MEDICINEDDIET_BY_ID, bean);
            }
        });
    }

    /**
     * 获取健康行动指南
     */
    public void getInterveneHealthAction(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_HEALTH_ACTION);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_HEALTH_ACTION), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_HEALTH_ACTION, data);
            }
        });
    }

    /**
     * 获取膳食方案
     */
    public void getInterveneMedicineddiet(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_MEDICINEDDIET);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_MEDICINEDDIET), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_MEDICINEDDIET, data);
            }
        });
    }

    /**
     * 获取干预方案医嘱
     */
    public void getInterveneDoctorAdvice(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_INTERVENE_DOCTOR_ADVICE);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_DOCTOR_ADVICE), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GET_INTERVENE_DOCTOR_ADVICE, data);
            }
        });
    }

    /**
     * 获取随诊列表
     */
    public void getQuestionList() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_QUESTION_LIST);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.GET_QUESTION_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GET_QUESTION_LIST, data);
            }
        });
    }

    /**
     * 获取干预方案医嘱
     */
    public void getHistoryScheme(String pageNo, String pageSize, final String flag) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, flag);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_HISTORY_SCHEME), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<SchemeHistoryBean> schemeHistoryBeans = gson.fromJson(list,
                        new TypeToken<List<SchemeHistoryBean>>() {
                        }.getType());

                actionHandle.handleActionSuccess(flag, schemeHistoryBeans);
            }
        });
    }

    /**
     * 我的医嘱详情
     *
     * @param id 医嘱id
     */
    public void getDoctorAdviceById(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETDOCTORADVICEBYID_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GETDOCTORADVICEBYID), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                AdviceDetail adviceDetail = gson.fromJson(data, AdviceDetail.class);
                actionHandle.handleActionSuccess(Act.Flag.GETDOCTORADVICEBYID_FLAG, adviceDetail);
            }
        });
    }

    /**
     * 获取汗液设置
     */
    public void getUserSweatSetting() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_SWEAT_SETTING_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_SWEAT_SETTING), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<String> positions = gson.fromJson(list, new TypeToken<List<String>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.GET_SWEAT_SETTING_FLAG, positions);
            }
        });
    }

    /**
     * 修改汗液设置
     */
    public void updateSweatSetting(SweatSettingBean bean) {
        Map<String, String> mapHeader = getMapHeader();
        Gson gson = new MyGsonBuilder().createGson();
        String jsonStr = gson.toJson(bean);
        Map<String, String> map = gson.fromJson(jsonStr, new TypeToken<Map<String, String>>() {
        }.getType());
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.UPDATE_SWEAT_SETTING_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.UPDATE_SWEAT_SETTING), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.UPDATE_SWEAT_SETTING_FLAG, data);
            }
        });
    }

    /**
     * 获取疾病种类
     */
    public void getDiseaseKinds() {
        Map<String, String> mapHeader = getMapHeader();
        HashMap map = new HashMap();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GET_DISEASE_KINDS_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_DISEASE_KINDS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String sicks = JsonUtils.getFiledData(data, "sicks");
                Gson gson = new MyGsonBuilder().createGson();
                List<String> sickList = gson.fromJson(sicks, new TypeToken<List<String>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.GET_DISEASE_KINDS_FLAG, sickList);
            }
        });
    }


    /**
     * 历史数据  详情
     *
     * @param id 医嘱id
     */
    public void getHistorySchemeDetails(String id) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.GETDOCTORADVICEBYID_FLAG);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_HISTORY_SCHEME_DETAILS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.GETDOCTORADVICEBYID_FLAG, data);
            }
        });
    }

    /**
     * 我的家庭医生责任人
     */
    public void getHourseResponsible() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_HOURSE_RESPONSIBLE_PERSON);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HOURSE_RESPONSIBLE_PERSON), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String resultList = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<HouseResponblePresion> sickList = gson.fromJson(resultList, new TypeToken<List<HouseResponblePresion>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_HOURSE_RESPONSIBLE_PERSON, sickList);

            }
        });
    }

    public void hourseClearTakeCompete() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_HOURSE_RESPONSIBLE_TAKE_COMPETE);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HOURSE_RESPONSIBLE_TAKE_COMPETE), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                HousePersionCompeteModel housePersionCompeteModel = gson.fromJson(data, new TypeToken<HousePersionCompeteModel>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_HOURSE_RESPONSIBLE_TAKE_COMPETE, housePersionCompeteModel);

            }
        });
    }

    /**
     * 进行答题
     * pageNo	1	number
     * pageSize
     */
    public void getHealthCompeteListNewQUestion(String pageNo, String pageSize) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_HOURSE_RESPONSIBLE_GETNEWINQUIRYLIST);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.HOURSE_RESPONSIBLE_GETNEWINQUIRYLIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
               /* Gson gson = new MyGsonBuilder().createGson();
                HousePersionCompeteModel housePersionCompeteModel = gson.fromJson(data, new TypeToken<HousePersionCompeteModel>() {}.getType());*/
                actionHandle.handleActionSuccess(Act.Flag.FLAG_HOURSE_RESPONSIBLE_GETNEWINQUIRYLIST, data);

            }
        });
    }

    /**
     * 提交结果
     * pageNo	1	number
     * pageSize
     */
    public void commitCompeteListNewQUestion(String answer) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        map.put("answer", answer);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_COMMIT_HOURSE_RESPONSIBLE_GETNEWINQUIRYLIST);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.COMMIT_RESPONSIBLE_GETNEWINQUIRYLIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                QuestionResultModel questionResultModel = gson.fromJson(data, new TypeToken<QuestionResultModel>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_COMMIT_HOURSE_RESPONSIBLE_GETNEWINQUIRYLIST, questionResultModel);

            }
        });
    }

    /**
     * 用户（健康明白人）数据
     * pageNo	1	number
     * pageSize
     */
    public void getPersonHealthData(String touserid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        map.put("touserid", touserid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_DUTYPERSONHEALTH);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_DUTYPERSONHEALTH), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                Gson gson = new MyGsonBuilder().createGson();
                HealthyOldManManagerProject healthyOldManManagerProject = gson.fromJson(data, new TypeToken<HealthyOldManManagerProject>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_DUTYPERSONHEALTH, healthyOldManManagerProject);

            }
        });
    }

    /**
     * 首页 活动
     * pageNo	1	number
     * pageSize
     */
    public void getomeActivityIndexOnsale() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_HOME_ACTIVITY_INDEX_ONSALE);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.GET_HOME_ACTIVITY_INDEX_ONSALE), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String listString = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();

                ArrayList<MengHistoryModel> list = gson.fromJson(listString, new TypeToken<List<MengHistoryModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_HOME_ACTIVITY_INDEX_ONSALE, list);

            }
        });
    }

    /**
     * 我的医院列表
     * pageNo	1	number
     * pageSize
     */
    public void queryMyHospitalList(String pageNo, String pageSize) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = getMapHeader();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_QUERY_MY_DOCOTOR_HOSPITAL);
        client.request(Method.POST, map, mapHeader, Apis.getCommonUrl(Act.QUERY_MY_DOCOTOR_HOSPITAL), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                String listString = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<MyHopstipalListBaen> list = gson.fromJson(listString, new TypeToken<List<MyHopstipalListBaen>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_QUERY_MY_DOCOTOR_HOSPITAL, list);

            }
        });
    }

    public void getYLHBanner(String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GETHOME_YLHBBANNER);
        client.request(Request.Method.GET, map, null, Apis.getCommonUrl(Act.GETHOME_YLHBBANNER), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<MyBinnerHomeModel> listBean = gson.fromJson(list, new TypeToken<List<MyBinnerHomeModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GETHOME_YLHBBANNER, listBean);
            }
        });
    }

    /**
     * 医院咨询列表
     */
    public void requestDoetorAdkConluSion(String pageNo, String pageSize, String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        map.put("hid", hid);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_DOCTOR_ASK_ZX_LIST);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.DOCTOR_ASK_ZX_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<MyHomeHospitalConsultationModel> hospitalInformationCinlusionModeList = gson.fromJson(dataStr1, new TypeToken<List<MyHomeHospitalConsultationModel>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_DOCTOR_ASK_ZX_LIST, hospitalInformationCinlusionModeList);
                    }
                });
    }

    /**
     * 医院咨询列表
     */
    public void requestHospatalState(final String flag, String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", hid);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, flag);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.GET_HOSPATAL_IMAGE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(flag, result);
                    }
                });
    }

    /**
     * 医院介绍
     *
     * @param httpFlag
     */
    public void requestHospitalIntroduce(final String httpFlag, String hid) {
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("hid", hid);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.HOSPITAL_INTRODUCE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        Hospitalbean result2 = gson.fromJson(dataStr, Hospitalbean.class);
                        actionHandle.handleActionSuccess(httpFlag, result2);
                    }
                });
    }

    /**
     * 特色科室请求
     *
     * @param httpFlag
     */
    public void requestCharacteristicDepartment(String page, String pagesize, String hid, final String httpFlag) {
        Map<String, String> mapreq = new HashMap<String, String>();
        mapreq.put("pageNo", page);
        mapreq.put("hid", hid);
        mapreq.put("pageSize", pagesize);
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.GET, mapreq, mapHeader,
                Apis.getCommonUrl(Act.CHARACTERISTIC_DEPARTMENT), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String list = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<CharacteristicBean> result2 = gson.fromJson(list, new TypeToken<List<CharacteristicBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, result2);
                    }
                });
    }

    /**
     * 申请挂号状态
     */
    public void ylRegistrationState(String doctorid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("doctorid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_YL_REGISTRATION_STATE);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.YL_REGISTRATION_STATE), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_YL_REGISTRATION_STATE, data);
                    }
                });
    }

    /**
     * 获取医院图片和挂号状态
     */
    public void getYlHospitalStatus(String doctorid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", doctorid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_HAS_NO_GHJL_STATUS);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.HAS_NO_GHJL_STATUS), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        String registrtype = JsonUtils.getFiledData(data, "registrtype");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_HAS_NO_GHJL_STATUS, registrtype);
                    }
                });
    }

    /**
     * 申请挂号
     */
    public void ylRegistration(String doctorid, String idcard,
                               String name, String phone,
                               String rtime, String sex, String hid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> maps = new HashMap<String, String>();

        maps.put("doctorid", doctorid);
        maps.put("idcard", idcard);
        maps.put("name", name);
        maps.put("phone", phone);
        maps.put("rtime", rtime);
        maps.put("sex", sex);
        maps.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_YL_REGISTRATION);
        client.request(Request.Method.GET, maps, mapHeader,
                Apis.getCommonUrl(Act.YL_REGISTRATION), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_YL_REGISTRATION, null);
                    }
                });
    }

    /**
     * 文章收藏/取消收藏
     */
    public void getYLHReferral(String hid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_YLH_REFERRAL);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_YLH_REFERRAL), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_YLH_REFERRAL, data);
                    }
                });
    }

    /**
     * 查询文章的收藏状态
     */
    public void getMyFavoriteStatus(String id, String vtype) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        map.put("vtype", vtype);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_MY_FAVORITE_STATUS);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_MY_FAVORITE_STATUS), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String data = JsonUtils.getFiledData(result, "data");
                        String flag = JsonUtils.getFiledData(data, "flag");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_MY_FAVORITE_STATUS, flag);
                    }
                });
    }

    /**
     * 文章收藏/取消收藏
     */
    public void gotoFavotiteOrList(String id, String vtype) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap<String, String>();
        map.put("id", id);
        map.put("vtype", vtype);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GOTOFAVOTITE_ORLIST);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GOTOFAVOTITE_ORLIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_GOTOFAVOTITE_ORLIST, result);
                    }
                });
    }

    /**
     * 获取满意度调查问卷
     */
    public void getSatisfactionSurveyQuestion(String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_SATISFT_QUESTION_LIST);
        client.request(Request.Method.GET, map, null, Apis.getCommonUrl(Act.GET_SATISFT_QUESTION_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                List<SatisfactionSurveyQuestionBean> listBean = com.alibaba.fastjson.JSONObject.parseArray(list, SatisfactionSurveyQuestionBean.class);
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_SATISFT_QUESTION_LIST, listBean);
            }
        });
    }

    /**
     * 满意度调查问卷提交
     */
    public void commitSatisfactionSurveyAnswer(String answer, String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("answer", answer);
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_COMMIT_SATISFT_QUESTION_ANSWER);
        client.request(Request.Method.GET, map, null, Apis.getCommonUrl(Act.COMMIT_SATISFT_QUESTION_ANSWER), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_COMMIT_SATISFT_QUESTION_ANSWER, data);
            }
        });
    }

    public void getDoctorMengYCulture(String hid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_DOCTORMENGYCULTURE);
        client.request(Request.Method.GET, map, null, Apis.getCommonUrl(Act.DOCTORMENGYCULTURE), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<DortorCultrueModel> listData = gson.fromJson(list, new TypeToken<List<DortorCultrueModel>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_DOCTORMENGYCULTURE, listData);
            }
        });
    }

    /**
     * 信息公告
     */
    public void getInformationNotice(String hid) {
        Map<String, String> map = new HashMap();
        map.put("hid", hid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_INFORMATIONNOTICE_M);
        client.request(Request.Method.GET, map, null, Apis.getCommonUrl(Act.INFORMATIONNOTICE_M), new DataParse() {
            @Override
            public void onParse(String result) {
                //返回data字段
                String data = JsonUtils.getFiledData(result, "data");
                String list = JsonUtils.getFiledData(data, "list");
                Gson gson = new MyGsonBuilder().createGson();
                List<InformationNotice> listData = gson.fromJson(list, new TypeToken<List<InformationNotice>>() {
                }.getType());
                actionHandle.handleActionSuccess(Act.Flag.FLAG_INFORMATIONNOTICE_M, listData);
            }
        });
    }


    /**
     * 按类型获取最新数据接口
     */
    public void getDeviceDataByType(String deviceType) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("deviceType", deviceType);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_DEVICEDATABYTYPE);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.GET_DEVICEDATABYTYPE), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_DEVICEDATABYTYPE, data);

            }
        });
    }

    /**
     * 跑步机记录
     */
    public void getYDRunningInfo(String hpuid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("hpuid", hpuid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_YD_RUNNINGINFO);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.YD_RUNNINGINFO), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_YD_RUNNINGINFO, data);

            }
        });
    }

    /**
     * 运动包历史
     */
    public void getInterveneHistoryList(String pageNo, String pageSize) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("type", "2");
        map.put("pageNo", pageNo);
        map.put("pageSize", pageSize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_INTERVENE_HISTORYLIST);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.GET_INTERVENE_HISTORYLIST), new DataParse() {
            @Override
            public void onParse(String result) {
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_INTERVENE_HISTORYLIST, result);

            }
        });
    }

    /**
     * 获取最新运动处方包id
     */
    public void getYDSportsUserNow() {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_YD_SPORTS_USERNOW);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.GET_YD_SPORTS_USERNOW), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_YD_SPORTS_USERNOW, data);

            }
        });
    }

    /**
     * 运动个人基本信息
     */
    public void getYDSportsUsers(String hpuid) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("hpuid", hpuid);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_YD_SPORTSUSERS);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.YD_SPORTSUSERS), new DataParse() {
            @Override
            public void onParse(String result) {
                String data = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_YD_SPORTSUSERS, data);
            }
        });
    }

    //挂号列表
    public void requestRegistrtionList(final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.REGISTRATION_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<RegisterBean> myDoctor = gson.fromJson(dataStr1, new TypeToken<List<RegisterBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    //取消挂号
    public void requestCancelRegistrtionList(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.CANCEL_REGISTRATION_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<RegisterBean> myDoctor = gson.fromJson(dataStr1, new TypeToken<List<RegisterBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    //药店支付记录
    public void requestPayhistoryList(String page, String pagesize, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        map.put("pageNo", page);
        map.put("pageSize", pagesize);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.PAY_HISTORY_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<ScannerHistoryBean> myDoctor = gson.fromJson(dataStr1, new TypeToken<List<ScannerHistoryBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    /**
     * 药店列表（医院接口）
     * type 药店固定值
     */
    public void dHospitalList(String city, String hname, String province) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("type", "3");
        map.put("city", city);
        map.put("hname", hname);
        map.put("province", province);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_D_HOSPITAL_LIST);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.D_HOSPITAL_LIST), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_D_HOSPITAL_LIST, dataStr);
            }
        });
    }


    /**
     * 详情药店列表
     *
     * @param id
     * @param httpFlag
     */
    public void requeryMyMedicineStoreDetail(String id, final String httpFlag) {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        map.put("id", id);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, httpFlag);
        client.request(Request.Method.POST, map, mapHeader,
                Apis.getCommonUrl(Act.CANCEL_REGISTRATION_LIST), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        String dataStr1 = JsonUtils.getFiledData(dataStr, "list");
                        Gson gson = new MyGsonBuilder().createGson();
                        List<RegisterBean> myDoctor = gson.fromJson(dataStr1, new TypeToken<List<RegisterBean>>() {
                        }.getType());
                        actionHandle.handleActionSuccess(httpFlag, myDoctor);
                    }
                });
    }

    /**
     * 获取报名用户课题基本信息
     */
    public void getUserKeyti() {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_GET_USER_KEYTI);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.GET_USER_KEYTI), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_GET_USER_KEYTI, dataStr);
                    }
                });
    }
    /**
     * 抢红包
     */
    public void getRedpacket() {
        Map<String, String> map = new HashMap<String, String>();
        Map<String, String> mapHeader = getMapHeader();
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_QIANG_HONGBAO);
        client.request(Request.Method.GET, map, mapHeader,
                Apis.getCommonUrl(Act.QIANG_RED_PACKET), new DataParse() {
                    @Override
                    public void onParse(String result) {
                        String dataStr = JsonUtils.getFiledData(result, "data");
                        Gson gson = new MyGsonBuilder().createGson();
                        RedpacketBean redpacketBean = gson.fromJson(dataStr,RedpacketBean.class);
                        actionHandle.handleActionSuccess(Act.Flag.FLAG_QIANG_HONGBAO, redpacketBean);
                    }
                });
    }



    /**
     * 报名接口
     * @param birthday
     * @param bloodsugar
     * @param eval
     * @param heartrate
     * @param height
     * @param high
     * @param levels
     * @param low
     * @param rname
     * @param sex
     * @param sicks
     * @param type
     * @param weight
     */
    public void ketiBaoming(String birthday, String bloodsugar, String eval, String heartrate, String height, String high,
                            String levels, String low, String rname, String sex, String sicks, String type, String weight) {
        Map<String, String> mapHeader = getMapHeader();
        Map<String, String> map = new HashMap();
        map.put("birthday", birthday);
        map.put("bloodsugar", bloodsugar);
        map.put("eval", eval);
        map.put("heartrate", heartrate);
        map.put("height", height);
        map.put("high", high);
        map.put("levels", levels);
        map.put("low", low);
        map.put("rname", rname);
        map.put("sex", sex);
        map.put("sicks", sicks);
        map.put("type", type);
        map.put("weight", weight);
        HttpRequestProvider client = new HttpRequestProvider(actionHandle, Act.Flag.FLAG_KE_TI_BAO_MING);
        client.request(Method.GET, map, mapHeader, Apis.getCommonUrl(Act.KE_TI_BAO_MING), new DataParse() {
            @Override
            public void onParse(String result) {
                String dataStr = JsonUtils.getFiledData(result, "data");
                actionHandle.handleActionSuccess(Act.Flag.FLAG_KE_TI_BAO_MING, dataStr);
            }
        });
    }


}
